Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions grpc/src/client/transport/tonic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ impl Transport for TransportBuilder {
};
let transport = transport_fut.await?;
let credentials = &security_info.credentials;
let handshake_ouput = credentials
let handshake_output = credentials
.connect(
&security_info.authority,
transport,
Expand All @@ -468,17 +468,17 @@ impl Transport for TransportBuilder {
.await?;

let local_address = Address {
network_type: handshake_ouput.endpoint.get_network_type(),
address: ByteStr::from(handshake_ouput.endpoint.get_local_address().to_string()),
network_type: handshake_output.endpoint.get_network_type(),
address: ByteStr::from(handshake_output.endpoint.get_local_address().to_string()),
attributes: Attributes::new(),
};
let remote_address = Address {
network_type: handshake_ouput.endpoint.get_network_type(),
address: ByteStr::from(handshake_ouput.endpoint.get_peer_address().to_string()),
network_type: handshake_output.endpoint.get_network_type(),
address: ByteStr::from(handshake_output.endpoint.get_peer_address().to_string()),
attributes: Attributes::new(),
};

let transport = HyperStream::new(handshake_ouput.endpoint);
let transport = HyperStream::new(handshake_output.endpoint);

let (sender, connection) = settings
.handshake(transport)
Expand All @@ -494,15 +494,15 @@ impl Transport for TransportBuilder {
}
}));
let authority = &security_info.authority.host_port_string();
let scheme = handshake_ouput.security_info.scheme();
let scheme = handshake_output.security_info.scheme();
let uri = Uri::from_maybe_shared(format!("{scheme}://{authority}"))
.map_err(|e| format!("failed to create URL {scheme}://{authority}: {e}"))?;
let grpc = Grpc::with_origin(TonicService { inner: sender }, uri);

let connection_info = ConnectionInfo::new(
local_address,
remote_address,
handshake_ouput.security_info.clone(),
handshake_output.security_info.clone(),
);

let service = TonicTransport {
Expand Down
Loading