diff --git a/Cargo.lock b/Cargo.lock index 0515a2d28..907322b39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2328,7 +2328,7 @@ dependencies = [ [[package]] name = "iggy" -version = "0.6.81" +version = "0.6.82" dependencies = [ "aes-gcm", "ahash 0.8.11", diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 716d175e3..d813d2fed 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iggy" -version = "0.6.81" +version = "0.6.82" description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second." edition = "2021" license = "Apache-2.0" diff --git a/sdk/src/clients/builder.rs b/sdk/src/clients/builder.rs index d43f46f8b..581d705bd 100644 --- a/sdk/src/clients/builder.rs +++ b/sdk/src/clients/builder.rs @@ -1,4 +1,4 @@ -use crate::client::Client; +use crate::client::{AutoLogin, Client}; use crate::clients::client::IggyClient; use crate::error::IggyError; use crate::http::client::HttpClient; @@ -111,6 +111,12 @@ impl TcpClientBuilder { self } + /// Sets the auto sign in during connection. + pub fn with_auto_sign_in(mut self, auto_sign_in: AutoLogin) -> Self { + self.config = self.config.with_auto_sign_in(auto_sign_in); + self + } + /// Sets the number of max retries when connecting to the server. pub fn with_reconnection_max_retries(mut self, reconnection_retries: Option) -> Self { self.config = self @@ -165,6 +171,12 @@ impl QuicClientBuilder { self } + /// Sets the auto sign in during connection. + pub fn with_auto_sign_in(mut self, auto_sign_in: AutoLogin) -> Self { + self.config = self.config.with_auto_sign_in(auto_sign_in); + self + } + /// Sets the number of retries when connecting to the server. pub fn with_reconnection_max_retries(mut self, reconnection_retries: Option) -> Self { self.config = self