Skip to content

Commit

Permalink
update(MulticastReplay): rewrite Len() > 0 -> Len() != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
b97tsk committed Dec 13, 2023
1 parent eb2080f commit fa2240f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multicastreplay.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (m *multicastReplay[T]) trimBuffer(b *queue.Queue[Pair[time.Time, T]]) {

now := time.Now()

for b.Len() > 0 {
for b.Len() != 0 {
if b.Front().Key.After(now) {
break
}
Expand Down

0 comments on commit fa2240f

Please sign in to comment.