Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jgongd committed Jun 10, 2024
1 parent 51ce188 commit 1732752
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/pkg/stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,13 @@ func (p *Publisher[T]) Broadcast(events []Event[T], idToSaturatedMsg map[int]*Up

if saturatedMsg, ok := idToSaturatedMsg[afterMsg.GetID()]; ok {
cachedSeq := saturatedMsg.SeqNum()
if cachedSeq == afterMsg.SeqNum() {
msg = sub.Streamer.PrepareFn(saturatedMsg)
} else {
if cachedSeq != afterMsg.SeqNum() {
if isInsert || isFallin {
userNotKnownIDs.Insert(afterMsg.GetID())
}
continue
}
msg = sub.Streamer.PrepareFn(saturatedMsg)
} else {
if isInsert || isFallin {
userNotKnownIDs.Insert(afterMsg.GetID())
Expand Down

0 comments on commit 1732752

Please sign in to comment.