Skip to content

Commit

Permalink
Invoke destroy when sources finish running (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschafhalter authored Mar 11, 2021
1 parent c96b181 commit 3bd2f92
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/node/operator_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,16 @@ impl OperatorExecutor {
.unwrap();
// Handle errors?
future::join_all(event_runner_handles).await;
}

if self.all_streams_closed() {
slog::debug!(
crate::TERMINAL_LOGGER,
"Node {}: destroying operator {}",
self.config.node_id,
name,
);
self.operator.destroy();
}
if self.all_streams_closed() {
slog::debug!(
crate::TERMINAL_LOGGER,
"Node {}: destroying operator {}",
self.config.node_id,
name,
);
self.operator.destroy();
}
}

Expand Down

0 comments on commit 3bd2f92

Please sign in to comment.