mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
depth: add details to the depth error message
This commit is contained in:
parent
8b56c47f65
commit
cb9d9137a6
|
@ -120,7 +120,10 @@ func (b *Buffer) AddUpdate(o types.SliceOrderBook, firstUpdateID int64, finalArg
|
|||
b.resetSnapshot()
|
||||
b.emitReset()
|
||||
b.mu.Unlock()
|
||||
return fmt.Errorf("there is a missing update between %d and %d", u.FirstUpdateID, b.finalUpdateID+1)
|
||||
return fmt.Errorf("found missing update between finalUpdateID %d and firstUpdateID %d, diff: %d",
|
||||
b.finalUpdateID+1,
|
||||
u.FirstUpdateID,
|
||||
u.FirstUpdateID-b.finalUpdateID)
|
||||
}
|
||||
|
||||
log.Debugf("depth update id %d -> %d", b.finalUpdateID, u.FinalUpdateID)
|
||||
|
|
Loading…
Reference in New Issue
Block a user