disable message pool by default

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-05-18 18:58:53 +03:00
parent f976516d6b
commit d43b59f2f3
2 changed files with 8 additions and 0 deletions

View File

@@ -116,3 +116,10 @@ type subscribeMessagePoolKey struct{}
func SubscribeMessagePool(b bool) broker.SubscribeOption {
return broker.SetSubscribeOption(subscribeMessagePoolKey{}, b)
}
type subscribeMessagePoolKey struct{}
// SubscribeMessagePool optionaly enabled/disable message pool
func SubscribeMessagePool(b bool) broker.SubscribeOption {
return broker.SetSubscribeOption(subscribeMessagePoolKey{}, b)
}

View File

@@ -39,6 +39,7 @@ type consumer struct {
}
type Subscriber struct {
<<<<<<< HEAD
consumers map[tp]*consumer
c *kgo.Client
htracer *hookTracer