Check streams too

This commit is contained in:
Neil Alexander 2022-03-22 14:22:06 +00:00
parent 4ebef3ec4f
commit 4d636428c0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -1,6 +1,7 @@
package jetstream package jetstream
import ( import (
"reflect"
"strings" "strings"
"sync" "sync"
"time" "time"
@ -82,6 +83,8 @@ func setupNATS(cfg *config.JetStream, nc *natsclient.Conn) (natsclient.JetStream
} }
if info != nil { if info != nil {
switch { switch {
case !reflect.DeepEqual(info.Config.Subjects, stream.Subjects):
fallthrough
case info.Config.Retention != stream.Retention: case info.Config.Retention != stream.Retention:
fallthrough fallthrough
case info.Config.Storage != stream.Storage: case info.Config.Storage != stream.Storage: