Skip to content

Commit

Permalink
refactor: remove not necessary result in with_outbound_channel_size m…
Browse files Browse the repository at this point in the history
…ethod

Signed-off-by: Florentin Dubois <[email protected]>
  • Loading branch information
FlorentinDUBOIS committed Jul 26, 2024
1 parent 60490ba commit 9c54900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,9 @@ impl<Exe: Executor> PulsarBuilder<Exe> {
}

#[cfg_attr(feature = "telemetry", tracing::instrument(skip_all))]
pub fn with_outbound_channel_size(mut self, size: usize) -> Result<Self, std::io::Error> {
pub fn with_outbound_channel_size(mut self, size: usize) -> Self {
self.outbound_channel_size = Some(size);
Ok(self)
self
}

/// creates the Pulsar client and connects it
Expand Down

0 comments on commit 9c54900

Please sign in to comment.