Skip to content

Commit

Permalink
review comment: remove unneeded SocketAddrV6->SocketAddr wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
iximeow committed Aug 15, 2024
1 parent 338b7f6 commit 0dcec7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oximeter/collector/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ async fn refresh_producer_list(agent: OximeterAgent, resolver: Resolver) {
async fn resolve_nexus_with_backoff(
log: &Logger,
resolver: &Resolver,
) -> SocketAddr {
) -> SocketAddrV6 {
let log_failure = |error, delay| {
warn!(
log,
Expand All @@ -829,7 +829,6 @@ async fn resolve_nexus_with_backoff(
.lookup_socket_v6(ServiceName::Nexus)
.await
.map_err(|e| BackoffError::transient(e.to_string()))
.map(|addr| SocketAddr::V6(addr))
};
backoff::retry_notify(
backoff::retry_policy_internal_service(),
Expand Down

0 comments on commit 0dcec7a

Please sign in to comment.