fix method name

This commit is contained in:
c9s 2024-08-20 17:47:39 +08:00
parent c92c395f67
commit 2392fddc3c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ func NewBboMonitor() *BboMonitor {
return &BboMonitor{}
}
func (m *BboMonitor) OnUpdateFromBook(book *types.StreamOrderBook) bool {
func (m *BboMonitor) UpdateFromBook(book *types.StreamOrderBook) bool {
bestBid, ok1 := book.BestBid()
bestAsk, ok2 := book.BestAsk()
if !ok1 || !ok2 {

View File

@ -276,7 +276,7 @@ func (e *FixedQuantityExecutor) orderUpdater(ctx context.Context) {
return
case <-e.orderBook.C:
changed := monitor.OnUpdateFromBook(e.orderBook)
changed := monitor.UpdateFromBook(e.orderBook)
if !changed {
continue
}
@ -293,7 +293,7 @@ func (e *FixedQuantityExecutor) orderUpdater(ctx context.Context) {
}
case <-ticker.C:
changed := monitor.OnUpdateFromBook(e.orderBook)
changed := monitor.UpdateFromBook(e.orderBook)
if !changed {
continue
}