Config tweaks, make random jetstream storage path for CI

This commit is contained in:
Neil Alexander 2021-07-14 14:26:14 +01:00
parent be60a3bda4
commit 74735e7cd5
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 12 additions and 8 deletions

View file

@ -24,10 +24,12 @@ func SetupConsumerProducer(cfg *config.JetStream) (sarama.Consumer, sarama.SyncP
if s == nil {
var err error
natsServer, err = natsserver.NewServer(&natsserver.Options{
ServerName: "monolith",
DontListen: true,
JetStream: true,
StoreDir: string(cfg.Matrix.JetStream.StoragePath),
ServerName: "monolith",
DontListen: true,
JetStream: true,
StoreDir: string(cfg.StoragePath),
NoSystemAccount: true,
AllowNewAccounts: false,
})
if err != nil {
panic(err)