mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Check streams too
This commit is contained in:
parent
4ebef3ec4f
commit
4d636428c0
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue