Skip to content

Commit

Permalink
Add missing instrument to ActorHandles shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
john-z-yang committed Oct 24, 2024
1 parent f0d4262 commit dd9ff8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ pub struct ActorHandles {
}

impl ActorHandles {
#[instrument(skip(self))]
async fn shutdown(mut self, deadline: Duration) {
debug!("Signaling shutdown to actors...");
self.shutdown.cancel();
Expand Down Expand Up @@ -311,7 +312,7 @@ pub async fn handle_events(
Ok(())
}

trait KafkaMessage {
pub trait KafkaMessage {
fn detach(&self) -> Result<OwnedMessage, Error>;
}

Expand All @@ -327,7 +328,7 @@ impl KafkaMessage for Result<BorrowedMessage<'_>, KafkaError> {
}
}

trait MessageQueue {
pub trait MessageQueue {
fn stream(&self) -> impl Stream<Item = impl KafkaMessage>;
}

Expand Down

0 comments on commit dd9ff8d

Please sign in to comment.