Skip to content

Commit 0bbc048

Browse files
authored
[FIXED] Add omitempty to AllowMsgTTL and AllowMsgCounter (#1947)
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
1 parent 41de016 commit 0bbc048

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jetstream/stream_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ type (
196196

197197
// AllowMsgTTL allows header initiated per-message TTLs.
198198
// This feature requires nats-server v2.11.0 or later.
199-
AllowMsgTTL bool `json:"allow_msg_ttl"`
199+
AllowMsgTTL bool `json:"allow_msg_ttl,omitempty"`
200200

201201
// Enables and sets a duration for adding server markers for delete, purge and max age limits.
202202
// This feature requires nats-server v2.11.0 or later.
203203
SubjectDeleteMarkerTTL time.Duration `json:"subject_delete_marker_ttl,omitempty"`
204204

205205
// AllowMsgCounter enables the feature
206-
AllowMsgCounter bool `json:"allow_msg_counter"`
206+
AllowMsgCounter bool `json:"allow_msg_counter,omitempty"`
207207

208208
// AllowAtomicPublish allows atomic batch publishing into the stream.
209209
AllowAtomicPublish bool `json:"allow_atomic,omitempty"`

0 commit comments

Comments
 (0)