Skip to content

Commit

Permalink
Merge pull request #180 from scirner22/feature/producer-mutable-client
Browse files Browse the repository at this point in the history
Mutable producer underlying client
  • Loading branch information
johnward committed Aug 10, 2021
2 parents 9bea27b + 904bc39 commit 78d2316
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ impl Producer {
&self.client
}

/// Borrows the underlying kafka client as mut.
pub fn client_mut(&mut self) -> &mut KafkaClient {
&mut self.client
}

/// Destroys this producer returning the underlying kafka client.
pub fn into_client(self) -> KafkaClient {
self.client
Expand Down

0 comments on commit 78d2316

Please sign in to comment.