mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
FIX: depth buffer can skip old event if event.FinalUpdateID <= buffer.FinalUpdateID
This commit is contained in:
parent
cd6393fa3f
commit
319b8139a1
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user