Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aelesbao committed Nov 2, 2024
1 parent 58a5d13 commit b8b5bf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/proto/examples/grpc-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use tonic::transport::{Channel, ClientTlsConfig};
async fn main() -> Result<()> {
let addr = "https://grpc.mainnet.archway.io:443";
let tls_config = ClientTlsConfig::new().with_native_roots();
let channel = Channel::from_static(addr).tls_config(tls_config)?.connect().await?;
let channel = Channel::from_static(addr)
.tls_config(tls_config)?
.connect()
.await?;

let mut client = archway::rewards::v1::query_client::QueryClient::new(channel);

Expand Down

0 comments on commit b8b5bf7

Please sign in to comment.