Skip to content

Commit

Permalink
spell
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay committed Jul 23, 2024
1 parent 77b4f6d commit 02f046a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oracle/types/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (t *ProviderTickers) Add(ticker ProviderTicker) {
// NoPriceChangeResponse is used to handle a message that indicates that the price has not changed.
// In particular, this will update the base provider with the ResponseCodeUnchanged code for all tickers.
func (t *ProviderTickers) NoPriceChangeResponse() PriceResponse {
var resolved = make(ResolvedPrices)
resolved := make(ResolvedPrices)
for _, ticker := range t.cache {
resolved[ticker] = NewPriceResultWithCode(
big.NewFloat(0),
Expand Down
2 changes: 1 addition & 1 deletion providers/websockets/huobi/ws_data_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (h *WebSocketHandler) HandleMessage(
h.logger.Debug("received ping message")
updateMessage, err := NewPongMessage(pingMessage)

// The recepit of a ping message means that the connection is still alive and that all market's corresponding
// The receipt of a ping message means that the connection is still alive and that all market's corresponding
// to the tickers subscribed to are still being tracked. Therefore, the response can include a message to let
// the provider know that market prices are still valid.
return h.cache.NoPriceChangeResponse(), updateMessage, err
Expand Down

0 comments on commit 02f046a

Please sign in to comment.