make connect_with_timeout_with_buffers not async

This commit is contained in:
GroovieGermanikus 2024-03-26 09:54:27 +01:00
parent 7c0ac0177e
commit 95cde149e9
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
3 changed files with 3 additions and 5 deletions

View File

@ -55,8 +55,7 @@ pub fn create_geyser_reconnecting_stream(
connect_timeout,
request_timeout,
buffer_config,
)
.await;
);
let mut client = connect_result?;
debug!("Subscribe with filter {:?}", subscribe_filter);

View File

@ -86,8 +86,7 @@ pub fn create_geyser_autoconnection_task_with_mpsc(
connect_timeout,
request_timeout,
buffer_config,
)
.await;
);
match connect_result {
Ok(client) => ConnectionState::Connecting(attempt, client),

View File

@ -51,7 +51,7 @@ impl GeyserGrpcClientBufferConfig {
}
pub async fn connect_with_timeout_with_buffers<E, T>(
pub fn connect_with_timeout_with_buffers<E, T>(
endpoint: E,
x_token: Option<T>,
tls_config: Option<ClientTlsConfig>,