#133 fix race. #134

Merged
vtolstov merged 2 commits from :data-racev3 into v3 2024-04-19 19:26:07 +03:00
Showing only changes of commit ceae272ca8 - Show all commits

View File

@ -186,7 +186,9 @@ func (s *subscriber) assigned(_ context.Context, c *kgo.Client, assigned map[str
kopts: s.kopts,
opts: s.opts,
}
s.Lock()
s.consumers[tp{topic, partition}] = pc
s.Unlock()
go pc.consume()
}
}