From eef6940b64825fa940eeb72e0c55992c4abb79a1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 17 Jan 2022 13:27:21 +0000 Subject: [PATCH] Set max payload in NATS to 16MB --- setup/jetstream/nats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/jetstream/nats.go b/setup/jetstream/nats.go index 6dbbd1f4..5d7937b5 100644 --- a/setup/jetstream/nats.go +++ b/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)