Make sure to set node count to 1

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-04-18 22:34:13 -07:00
parent a744e1d5c9
commit aa66c87d53

View File

@@ -69,7 +69,7 @@ func (ss *SequenceSet) SetInitialMin(min uint64) error {
if !ss.IsEmpty() {
return ErrSetNotEmpty
}
ss.root = &node{base: min, h: 1}
ss.root, ss.nodes = &node{base: min, h: 1}, 1
return nil
}