Skip to content

Commit

Permalink
Fix Cargo format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jan 3, 2024
1 parent ea2c955 commit 392636c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion indexer/queryapi_coordinator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mod metrics;
mod opts;
mod s3;
mod utils;
mod runner_client;

pub(crate) const INDEXER: &str = "queryapi_coordinator";

Expand Down
10 changes: 5 additions & 5 deletions indexer/queryapi_coordinator/src/runner_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use runner_client::runner_client::RunnerClient;
use tonic::transport::Channel;

pub mod runner_client {
tonic::include_proto!("runner");
tonic::include_proto!("runner");
}

pub async fn create_client() -> Result<RunnerClient<Channel>, tonic::transport::Error> {
let server_host = std::env::var("RUNNER_HOST").unwrap_or("undefined".to_string());
let server_port = std::env::var("RUNNER_PORT").unwrap_or("undefined".to_string());
let server_address = format!("http://{}:{}", server_host, server_port);
let server_host = std::env::var("RUNNER_HOST").unwrap_or("undefined".to_string());
let server_port = std::env::var("RUNNER_PORT").unwrap_or("undefined".to_string());
let server_address = format!("http://{}:{}", server_host, server_port);

RunnerClient::connect(server_address).await
RunnerClient::connect(server_address).await
}

0 comments on commit 392636c

Please sign in to comment.