mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
grid2: add warning message when failed to acquire the lock
This commit is contained in:
parent
0e2f69e837
commit
085114b244
|
@ -1183,6 +1183,8 @@ func (s *Strategy) updateGridNumOfOrdersMetricsWithLock() {
|
||||||
grid := s.grid
|
grid := s.grid
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
s.updateGridNumOfOrdersMetrics(grid)
|
s.updateGridNumOfOrdersMetrics(grid)
|
||||||
|
} else {
|
||||||
|
s.logger.Warnf("updateGridNumOfOrdersMetricsWithLock: failed to acquire the lock to update metrics")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user