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