Skip to content

Commit

Permalink
chore: fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
inaiat committed Jan 5, 2025
1 parent 80378d6 commit 0c0faca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kafka/consumer/kafka_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ impl KafkaConsumer {
#[napi]
pub async fn shutdown_consumer(&self) -> Result<()> {
info!("Shutting down consumer - this will unsubscribe and stop the consumer from receiving messages");

// First unsubscribe from topics
self.stream_consumer.unsubscribe();

// Then send shutdown signal
let tx = self.shutdown_signal.0.clone();
tx.send(()).map_err(|e| {
Expand Down

0 comments on commit 0c0faca

Please sign in to comment.