From 3fe361ce0b769661b618536c9354f759c2e3cb6d Mon Sep 17 00:00:00 2001 From: mzack Date: Thu, 4 Apr 2024 20:01:40 +0200 Subject: [PATCH] Update adaptivewaitgroup.go --- sync/adaptivewaitgroup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sync/adaptivewaitgroup.go b/sync/adaptivewaitgroup.go index ecd50ef..71c66ce 100644 --- a/sync/adaptivewaitgroup.go +++ b/sync/adaptivewaitgroup.go @@ -69,4 +69,5 @@ func (s *AdaptiveWaitGroup) Wait() { func (s *AdaptiveWaitGroup) Resize(size int) { s.current.Resize(channels.BufferCap(size)) + s.Size = int(s.current.Cap()) }