update type for WaitGroup in server #324

Merged
vtolstov merged 2 commits from devstigneev/micro:waitGroup into master 2024-03-12 23:13:56 +03:00
Showing only changes of commit 87db21bc18 - Show all commits

View File

@ -147,8 +147,11 @@ func Wait(wg *sync.WaitGroup) options.Option {
if wg == nil {
wg = new(sync.WaitGroup)
}
wrap := msync.WrapWaitGroup(wg)
return func(src interface{}) error {
return options.Set(src, wg, ".Wait")
return options.Set(src, wrap, ".Wait")
}
}