Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverb123 committed Aug 6, 2024
1 parent 804494d commit 92dbb5a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions rust/hook-worker/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,15 @@ async fn process_batch<'a>(

let results = join_all(futures).await;

if hog_mode && push_hoghook_results_to_kafka(
results,
metadata_vec,
kafka_producer,
cdp_function_callbacks_topic,
).await.is_err()
if hog_mode
&& push_hoghook_results_to_kafka(
results,
metadata_vec,
kafka_producer,
cdp_function_callbacks_topic,
)
.await
.is_err()
{
return;
}
Expand Down

0 comments on commit 92dbb5a

Please sign in to comment.