From 3c1b880e4ae264125bc6a8b38be57a6fb26356fc Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Fri, 29 Aug 2025 20:49:47 +0300 Subject: [PATCH] fix linter --- hitless/hitless_manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hitless/hitless_manager.go b/hitless/hitless_manager.go index c8375de5..edaca903 100644 --- a/hitless/hitless_manager.go +++ b/hitless/hitless_manager.go @@ -179,11 +179,11 @@ func (hm *HitlessManager) UntrackOperationWithConnID(seqID int64, connID uint64) // Decrement active operation count only if operation existed hm.activeOperationCount.Add(-1) } else { - for key, _ := range hm.GetActiveMovingOperations() { - internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String()) - } if hm.config.LogLevel >= LogLevelDebug { // Debug level internal.Logger.Printf(context.Background(), "hitless: conn[%d] seqID[%d] Operation not found for untracking: %s", connID, seqID, key.String()) + for key := range hm.GetActiveMovingOperations() { + internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String()) + } } } }