Skip to content

Commit

Permalink
client/core: silence logging of unknown asset in spot price ntfns
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Feb 24, 2023
1 parent 12147ba commit 1534279
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/core/bookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,10 +984,7 @@ func handlePriceUpdateNote(c *Core, dc *dexConnection, msg *msgjson.Message) err
}
mktName, err := dex.MarketName(spot.BaseID, spot.QuoteID)
if err != nil {
// It's possible for the dex server to have a market with coin
// ID's we do not know, especially in the case of eth tokens.
c.log.Debugf("error parsing market for base = %d, quote = %d: %v", spot.BaseID, spot.QuoteID, err)
return nil
return nil // it's just an asset we don't support, don't insert, but don't spam
}
dc.spotsMtx.Lock()
dc.spots[mktName] = spot
Expand Down

0 comments on commit 1534279

Please sign in to comment.