Skip to content

Commit

Permalink
Merge branch 'release/v1.7' into backport/release/v1.7/refactor/makef…
Browse files Browse the repository at this point in the history
…ile/add-absolute-path
  • Loading branch information
kpango authored Oct 4, 2024
2 parents 3a2aa08 + 5d685f7 commit 3fd17af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/net/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ package grpc

import (
"context"
"maps"
"math"
"slices"
"sync/atomic"
"time"

Expand Down Expand Up @@ -155,11 +157,7 @@ func (g *gRPCClient) StartConnectionMonitor(ctx context.Context) (<-chan error,
}
g.monitorRunning.Store(true)

addrs := make([]string, len(g.addrs))
for addr := range g.addrs {
addrs = append(addrs, addr)
}

addrs := slices.Collect(maps.Keys(g.addrs))
if g.dialer != nil {
g.dialer.StartDialerCache(ctx)
}
Expand Down

0 comments on commit 3fd17af

Please sign in to comment.