Skip to content

Commit ccb5a3d

Browse files
committed
Use stream_uuid instead of stream_id
Signed-off-by: Miguel A. Cabrera Minagorri <[email protected]>
1 parent 636b7c4 commit ccb5a3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pipeless/src/dispatcher.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ pub fn start(
200200
}
201201
}
202202
DispatcherEvent::PipelineFinished(pipeline_id, finish_state) => {
203-
let mut stream_id: Option<uuid::Uuid> = None;
203+
let mut stream_uuid: Option<uuid::Uuid> = None;
204204
{ // context to release the write lock
205205
let mut table_write_guard = streams_table.write().await;
206206
let stream_entry_option = table_write_guard.find_by_pipeline_id_mut(pipeline_id);
207207
if let Some(entry) = stream_entry_option {
208-
stream_id = Some(entry.get_id());
208+
stream_uuid = Some(entry.get_id());
209209
// Remove the pipeline from the stream entry since it finished
210210
entry.unassign_pipeline();
211211

@@ -253,7 +253,7 @@ pub fn start(
253253
let ext_event: serde_json::Value = serde_json::json!({
254254
"type": "StreamFinished",
255255
"end_state": finish_state.to_string(),
256-
"stream_id": stream_id.unwrap_or_default(),
256+
"stream_uuid": stream_uuid.unwrap_or_default(),
257257
});
258258
let ext_event_json_str = serde_json::to_string(&ext_event);
259259
if let Ok(json_str) = ext_event_json_str {

0 commit comments

Comments
 (0)