Skip to content

Commit

Permalink
Avoid making error on every actuator output (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Jan 25, 2024
1 parent 1b7f355 commit d094da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/worker/src/partition/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ where
},
actuator_output = actuator_stream.next() => {
counter!(PARTITION_ACTUATOR_HANDLED).increment(1);
let actuator_output = actuator_output.ok_or(anyhow::anyhow!("actuator stream is closed"))?;
let actuator_output = actuator_output.ok_or_else(|| anyhow::anyhow!("actuator stream is closed"))?;
actuator_output_handler.handle(actuator_output).await;
},
task_result = leadership_state.run_tasks() => {
Expand Down

0 comments on commit d094da3

Please sign in to comment.