Move waitgroup.Add outside goroutine
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
Katherine 2026-02-24 11:48:40 -05:00 committed by GitHub
parent a8176ab4fe
commit e6b827a1fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,8 +120,8 @@ func (s *Streamer) run(ctx context.Context, name string, startAtTimestamp time.T
// checkpointing past an update that we might've failed to sequence.
state.sinceLast += 1
state.wg.Add(1)
updatesWg.Add(1)
go func(ctx context.Context, data []byte, wg *sync.WaitGroup) {
updatesWg.Add(1)
defer updatesWg.Done()
for {
select {