diff --git a/pkg/server/sync.go b/pkg/server/sync.go index eaf9f0db1..c7dd6286a 100644 --- a/pkg/server/sync.go +++ b/pkg/server/sync.go @@ -724,7 +724,7 @@ func (sh *SyncHandler) runFullValidation() { pfx := pfx gate.Start() go func() { - wg.Done() + defer wg.Done() defer gate.Done() sh.validateShardPrefix(pfx) }()