Skip to content

Commit

Permalink
Telemetry on Ping is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Nov 27, 2024
1 parent 90ef5e8 commit 34567ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions my-grpc-extensions/src/grpc_channel/grpc_channel_holder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl GrpcChannelHolder {
);
}

let grpc_service_endpoint = grpc_service_endpoint.unwrap();
let _grpc_service_endpoint = grpc_service_endpoint.unwrap();

#[cfg(feature = "with-unix-socket")]
if connect_url.starts_with("/") || connect_url.starts_with("~/") {
Expand All @@ -172,7 +172,7 @@ impl GrpcChannelHolder {
.start_port_forward(
&ssh_session,
unix_socket_name.as_str(),
grpc_service_endpoint,
_grpc_service_endpoint,
)
.await;

Expand Down
2 changes: 1 addition & 1 deletion my-grpc-extensions/src/grpc_channel/grpc_channel_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl<'s, TService: Send + Sync + 'static> GrpcChannelPool<TService> {
let service = service_factory.create_service(
channel,
#[cfg(feature = "with-telemetry")]
&MyTelemetryContext::new(),
&MyTelemetryContext::create_empty(),
);

let service_factory_cloned = service_factory.clone();
Expand Down

0 comments on commit 34567ae

Please sign in to comment.