fix(bus): increase message bus buffer size from 16 to 64

Prevents potential backpressure under load when multiple channels
publish concurrently in gateway mode, where SDK callbacks blocking
on a full buffer can cause message loss or timeouts.
This commit is contained in:
Hoshina
2026-02-26 22:46:57 +08:00
parent 0a7c929905
commit 1d4fe4652a
+1 -1
View File
@@ -11,7 +11,7 @@ import (
// ErrBusClosed is returned when publishing to a closed MessageBus.
var ErrBusClosed = errors.New("message bus closed")
const defaultBusBufferSize = 16
const defaultBusBufferSize = 64
type MessageBus struct {
inbound chan InboundMessage