Increase maximum message size to 16MB (#2109)

This commit is contained in:
Neil Alexander 2022-01-25 14:20:12 +00:00 committed by GitHub
parent a5c5de860b
commit 49a618dfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)