diff --git a/jsm.go b/jsm.go index 726558efb..6f98747c2 100644 --- a/jsm.go +++ b/jsm.go @@ -96,7 +96,7 @@ type StreamConfig struct { Sealed bool `json:"sealed,omitempty"` DenyDelete bool `json:"deny_delete,omitempty"` DenyPurge bool `json:"deny_purge,omitempty"` - RollupAllowed bool `json:"rollup_hdrs,omitempty"` + AllowRollup bool `json:"rollup_hdrs,omitempty"` } // Placement is used to guide placement of streams in clustered JetStream. diff --git a/kv.go b/kv.go index 716c80262..38597e10c 100644 --- a/kv.go +++ b/kv.go @@ -200,7 +200,7 @@ func (js *js) CreateKeyValue(cfg *KeyValueConfig) (KeyValue, error) { MaxMsgSize: cfg.MaxValueSize, Storage: cfg.Storage, Replicas: replicas, - RollupAllowed: true, + AllowRollup: true, DenyDelete: true, }