Make sure order correct

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-08-30 16:13:56 -07:00
parent 1de649a690
commit abae24086c

View File

@@ -3945,7 +3945,7 @@ func (mb *msgBlock) updateAccounting(seq uint64, ts int64, rl uint64) {
seq = seq &^ ebit
}
if mb.first.seq == 0 || mb.first.ts == 0 && seq >= mb.first.seq {
if (mb.first.seq == 0 || mb.first.ts == 0) && seq >= mb.first.seq {
mb.first.seq = seq
mb.first.ts = ts
}