aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rw-r--r--setup/jetstream/nats.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/setup/jetstream/nats.go b/setup/jetstream/nats.go
index 77ad2b72..562b0131 100644
--- a/setup/jetstream/nats.go
+++ b/setup/jetstream/nats.go
@@ -24,13 +24,12 @@ func Prepare(cfg *config.JetStream) natsclient.JetStreamContext {
if natsServer == nil {
var err error
natsServer, err = natsserver.NewServer(&natsserver.Options{
- ServerName: "monolith",
- DontListen: true,
- JetStream: true,
- StoreDir: string(cfg.StoragePath),
- NoSystemAccount: true,
- AllowNewAccounts: false,
- MaxPayload: 16 * 1024 * 1024,
+ ServerName: "monolith",
+ DontListen: true,
+ JetStream: true,
+ StoreDir: string(cfg.StoragePath),
+ NoSystemAccount: true,
+ MaxPayload: 16 * 1024 * 1024,
})
if err != nil {
panic(err)