Skip to content

Commit

Permalink
[rpc] defer Stop ticker for GC
Browse files Browse the repository at this point in the history
  • Loading branch information
Fricounet committed May 30, 2024
1 parent 565ff53 commit 856c5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func GetGroupControllerCapabilities(ctx context.Context, conn *grpc.ClientConn)
func ProbeForever(ctx context.Context, conn *grpc.ClientConn, singleProbeTimeout time.Duration) error {
logger := klog.FromContext(ctx)
ticker := time.NewTicker(probeInterval)
defer ticker.Stop()

for {
select {
Expand Down

0 comments on commit 856c5da

Please sign in to comment.