Skip to content

Commit

Permalink
make connect_with_timeout_with_buffers not async
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 26, 2024
1 parent 7c0ac01 commit 95cde14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/grpc_subscription_autoreconnect_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/grpc_subscription_autoreconnect_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/yellowstone_grpc_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 95cde14

Please sign in to comment.