From 2459fd2b79e114e3939be69bd177ec445eaf2595 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 10 Sep 2024 19:22:03 +0100 Subject: [PATCH] Use sync always for built-in JetStream Signed-off-by: Neil Alexander --- setup/jetstream/nats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/jetstream/nats.go b/setup/jetstream/nats.go index 8630a14119..c6b88e00fa 100644 --- a/setup/jetstream/nats.go +++ b/setup/jetstream/nats.go @@ -56,6 +56,7 @@ func (s *NATSInstance) Prepare(process *process.ProcessContext, cfg *config.JetS MaxPayload: 16 * 1024 * 1024, NoSigs: true, NoLog: cfg.NoLog, + SyncAlways: true, } s.Server, err = natsserver.NewServer(opts) if err != nil {