aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-02-17 13:15:35 +0000
committerGitHub <noreply@github.com>2022-02-17 13:15:35 +0000
commit934491eda5c12a913cb5bcc06aac31aae843c461 (patch)
tree3b1867ef967240be3c3491ecaa2cab9d913aec4c /setup
parentf51e2a99e93f03eb9aed59b2643170dede1f4fe8 (diff)
Update NATS Server to v2.7.2 (#2193)
* Update NATS JetStream to v2.7.2 * Remove deprecated option
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)