Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed Sep 17, 2023
1 parent d31a4c4 commit 5ba92b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/evm/orderbook/memory_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,11 @@ func (db *InMemoryDatabase) GetMarketOrders(market Market) []Order {
defer db.mu.RUnlock()

allOrders := []Order{}
longOrders := db.LongOrders[market]
for _, order := range longOrders {
for _, order := range db.LongOrders[market] {
allOrders = append(allOrders, deepCopyOrder(order))
}

shortOrders := db.ShortOrders[market]
for _, order := range shortOrders {
for _, order := range db.ShortOrders[market] {
allOrders = append(allOrders, deepCopyOrder(order))
}

Expand Down

0 comments on commit 5ba92b7

Please sign in to comment.