From 2b7a14d8356b296e80754862bb91cc531a72c85a Mon Sep 17 00:00:00 2001 From: mpl Date: Mon, 16 Jan 2017 20:30:54 +0100 Subject: [PATCH] server: add missing defer in sync handler Change-Id: I69a74f62d171dc413bb08065ea73af2c694cebcc --- pkg/server/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }()