From 319b8139a185e6d7044aaf038a648e93edf26914 Mon Sep 17 00:00:00 2001 From: kbearXD Date: Sat, 16 Nov 2024 15:49:32 +0800 Subject: [PATCH] FIX: depth buffer can skip old event if event.FinalUpdateID <= buffer.FinalUpdateID --- pkg/depth/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/depth/buffer.go b/pkg/depth/buffer.go index 30a3abd25..05ab39faa 100644 --- a/pkg/depth/buffer.go +++ b/pkg/depth/buffer.go @@ -158,7 +158,7 @@ func (b *Buffer) fetchAndPush() error { var pushUpdates []Update for _, u := range b.buffer { // skip old events - if u.FirstUpdateID < finalUpdateID+1 { + if u.FinalUpdateID <= finalUpdateID { continue }