Set max payload in NATS to 16MB

This commit is contained in:
Neil Alexander 2022-01-17 13:27:21 +00:00
parent 3a62494082
commit eef6940b64
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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)