Skip to content

Commit

Permalink
chore(firehose-client): fix variable names in client creation methods
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Oct 21, 2024
1 parent c32d7f0 commit 587fdfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/firehose-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ fn create_blocks_streaming_request(

async fn fetch_client(firehose: Chain) -> Result<FetchClient<Channel>, ClientError> {
Ok(FetchClient::new({
let execution_firehose_uri = firehose.uri_from_env()?;
build_and_connect_channel(execution_firehose_uri).await?
let uri = firehose.uri_from_env()?;
build_and_connect_channel(uri).await?
}))
}

async fn stream_client(firehose: Chain) -> Result<StreamClient<Channel>, ClientError> {
Ok(StreamClient::new({
let execution_firehose_uri = firehose.uri_from_env()?;
build_and_connect_channel(execution_firehose_uri).await?
let uri = firehose.uri_from_env()?;
build_and_connect_channel(uri).await?
}))
}

Expand Down

0 comments on commit 587fdfa

Please sign in to comment.