Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Dec 6, 2024
1 parent 367567f commit 69efcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sync/syncWorker.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (s *syncWorker) validateAndInsertEnvelope(stream *originatorStream, envProt
s.log.Error("Received out of order envelope")
}

if env.OriginatorSequenceID() > stream.lastEnvelope.OriginatorSequenceID() {
if env.OriginatorSequenceID() > lastSequenceID {
stream.lastEnvelope = env
}

Expand Down

0 comments on commit 69efcc7

Please sign in to comment.