From 51ac4adb69067706ecae5bf8d5a8047defe0071b Mon Sep 17 00:00:00 2001 From: Florentin DUBOIS Date: Fri, 26 Jul 2024 10:34:07 +0200 Subject: [PATCH] refactor: remove not necessary result in with_outbound_channel_size method (#318) Signed-off-by: Florentin Dubois --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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