Skip to content

Commit eebc56c

Browse files
(2.12) [IMPROVED] Make new stream bools omitempty
Signed-off-by: Maurice van Veen <[email protected]>
1 parent df55efb commit eebc56c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ type StreamConfig struct {
111111
SubjectDeleteMarkerTTL time.Duration `json:"subject_delete_marker_ttl,omitempty"`
112112

113113
// AllowMsgCounter allows a stream to use (only) counter CRDTs.
114-
AllowMsgCounter bool `json:"allow_msg_counter"`
114+
AllowMsgCounter bool `json:"allow_msg_counter,omitempty"`
115115

116116
// AllowAtomicPublish allows atomic batch publishing into the stream.
117-
AllowAtomicPublish bool `json:"allow_atomic"`
117+
AllowAtomicPublish bool `json:"allow_atomic,omitempty"`
118118

119119
// AllowMsgSchedules allows the scheduling of messages.
120120
AllowMsgSchedules bool `json:"allow_msg_schedules,omitempty"`

0 commit comments

Comments
 (0)