Merge pull request #1829 from c9s/kbearXD/max/depth-buffer
Some checks are pending
Go / build (1.21, 6.2) (push) Waiting to run
golang-lint / lint (push) Waiting to run

FIX: depth buffer can skip old event if event.FinalUpdateID <= buffer…
This commit is contained in:
kbearXD 2024-11-16 16:01:52 +08:00 committed by GitHub
commit f9910626bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,7 @@ func (b *Buffer) fetchAndPush() error {
var pushUpdates []Update var pushUpdates []Update
for _, u := range b.buffer { for _, u := range b.buffer {
// skip old events // skip old events
if u.FirstUpdateID < finalUpdateID+1 { if u.FinalUpdateID <= finalUpdateID {
continue continue
} }