Skip to content

Commit

Permalink
refactor: pattern match
Browse files Browse the repository at this point in the history
Co-authored-by: Devdutt Shenoi <[email protected]>
Signed-off-by: parmesant <[email protected]>
  • Loading branch information
parmesant and de-sh authored Dec 16, 2024
1 parent 83a319b commit 5f9ec0c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,9 @@ pub async fn setup_integration() {
let mut stream = consumer.stream();

while let Ok(curr) = stream.next().await.unwrap() {
match ingest_message(&stream_name, curr).await {
Ok(_) => {}
Err(err) => error!("Unable to ingest incoming kafka message- {err}"),
};
if let Err(err) = ingest_message(&stream_name, curr).await {
error!("Unable to ingest incoming kafka message- {err}"),
}
}
});
}

0 comments on commit 5f9ec0c

Please sign in to comment.