Increase maximum message size to 16MB
MODIFY
setup/jetstream/nats.go
setup/jetstream/nats.go
@@ -33,6 +33,7 @@ func Prepare(cfg *config.JetStream) (nats.JetStreamContext, sarama.Consumer, sar
StoreDir: string(cfg.StoragePath),
NoSystemAccount: true,
AllowNewAccounts: false,
+ MaxPayload: 16 * 1024 * 1024,
})
if err != nil {
panic(err)

Increase maximum message size to 16MB (#2109)