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 (#318)

Signed-off-by: Florentin Dubois <florentin.dubois@clever-cloud.com>
  • Loading branch information
FlorentinDUBOIS authored Jul 26, 2024
1 parent 60490ba commit 51ac4ad
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 51ac4ad

Please sign in to comment.