[v4] hide access to internal mutex (#185)

* changed embedded mutex to private field

* update ci

* fix tests
This commit is contained in:
2025-05-23 01:45:39 +05:00
committed by Vasiliy Tolstov
parent 9e9c1434ff
commit 8f5c03ad60

View File

@@ -39,16 +39,15 @@ type consumer struct {
}
type Subscriber struct {
consumers map[tp]*consumer
c *kgo.Client
htracer *hookTracer
topic string
messagePool bool
handler interface{}
done chan struct{}
kopts broker.Options
opts broker.SubscribeOptions
consumers map[tp]*consumer
c *kgo.Client
htracer *hookTracer
topic string
messagePool bool
handler interface{}
done chan struct{}
kopts broker.Options
opts broker.SubscribeOptions
connected *atomic.Uint32
mu sync.RWMutex
closed bool