From 86633f03c941dd920a59068db44559959b878722 Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 17 Dec 2021 14:07:54 +0300 Subject: [PATCH] Fix: wait group counter --- cmd/metadata/thumbnail/service.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/metadata/thumbnail/service.go b/cmd/metadata/thumbnail/service.go index cdc2217..83820cf 100644 --- a/cmd/metadata/thumbnail/service.go +++ b/cmd/metadata/thumbnail/service.go @@ -114,8 +114,6 @@ func (s *Service) dispatch(ctx context.Context) { } func (s *Service) work(ctx context.Context, one models.TokenMetadata) error { - defer s.wg.Done() - filename := fmt.Sprintf("%s/%d.png", one.Contract, one.TokenID) if s.storage.Exists(filename) { return nil