Skip to content

Commit 3c1b880

Browse files
committed
fix linter
1 parent 5bc0711 commit 3c1b880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hitless/hitless_manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ func (hm *HitlessManager) UntrackOperationWithConnID(seqID int64, connID uint64)
179179
// Decrement active operation count only if operation existed
180180
hm.activeOperationCount.Add(-1)
181181
} else {
182-
for key, _ := range hm.GetActiveMovingOperations() {
183-
internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String())
184-
}
185182
if hm.config.LogLevel >= LogLevelDebug { // Debug level
186183
internal.Logger.Printf(context.Background(), "hitless: conn[%d] seqID[%d] Operation not found for untracking: %s", connID, seqID, key.String())
184+
for key := range hm.GetActiveMovingOperations() {
185+
internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String())
186+
}
187187
}
188188
}
189189
}

0 commit comments

Comments
 (0)