mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
grid2: avoid using loop iterator var
This commit is contained in:
parent
04da988639
commit
98739cc8a1
|
@ -1287,7 +1287,9 @@ func (s *Strategy) recoverGridWithOpenOrders(ctx context.Context, historyService
|
|||
s.setGrid(grid)
|
||||
s.EmitGridReady()
|
||||
|
||||
for _, o := range filledOrders {
|
||||
for i := range filledOrders {
|
||||
// avoid using the iterator
|
||||
o := filledOrders[i]
|
||||
s.processFilledOrder(o)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user