diff --git a/src/client.rs b/src/client.rs index 45c86bd..0fdfc3c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -555,9 +555,9 @@ impl PulsarBuilder { } #[cfg_attr(feature = "telemetry", tracing::instrument(skip_all))] - pub fn with_outbound_channel_size(mut self, size: usize) -> Result { + 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