mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 14:33:53 +00:00
Merge pull request #1829 from c9s/kbearXD/max/depth-buffer
FIX: depth buffer can skip old event if event.FinalUpdateID <= buffer…
This commit is contained in:
commit
f9910626bb
|
@ -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