Merge "server: add missing defer in sync handler"

This commit is contained in:
Mathieu Lonjaret 2017-01-16 21:08:41 +00:00 committed by Gerrit Code Review
commit abc6561c60
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}()