chore: fix some function names in comment

Signed-off-by: highcloudwind <highcloud@aliyun.com>
This commit is contained in:
highcloudwind
2025-04-01 21:30:30 +08:00
committed by Martin
parent d36714720b
commit ca17fc5a95
2 changed files with 3 additions and 3 deletions

View File

@@ -377,7 +377,7 @@ func (cg *Coingecko) HourlyTickers() (*[]common.CurrencyRatesTicker, error) {
return cg.getHighGranularityTickers("90")
}
// HourlyTickers returns the array of the exchange rates in five minutes granularity
// FiveMinutesTickers returns the array of the exchange rates in five minutes granularity
func (cg *Coingecko) FiveMinutesTickers() (*[]common.CurrencyRatesTicker, error) {
return cg.getHighGranularityTickers("1")
}

View File

@@ -900,7 +900,7 @@ func (s *WebsocketServer) unmarshalAddresses(params []byte) ([]string, error) {
return rv, nil
}
// unsubscribe addresses without addressSubscriptionsLock - can be called only from subscribeAddresses and unsubscribeAddresses
// doUnsubscribeAddresses addresses without addressSubscriptionsLock - can be called only from subscribeAddresses and unsubscribeAddresses
func (s *WebsocketServer) doUnsubscribeAddresses(c *websocketChannel) {
for _, ads := range c.addrDescs {
sa, e := s.addressSubscriptions[ads]
@@ -945,7 +945,7 @@ func (s *WebsocketServer) unsubscribeAddresses(c *websocketChannel) (res interfa
return &subscriptionResponse{false}, nil
}
// unsubscribe fiat rates without fiatRatesSubscriptionsLock - can be called only from subscribeFiatRates and unsubscribeFiatRates
// doUnsubscribeFiatRates fiat rates without fiatRatesSubscriptionsLock - can be called only from subscribeFiatRates and unsubscribeFiatRates
func (s *WebsocketServer) doUnsubscribeFiatRates(c *websocketChannel) {
for fr, sa := range s.fiatRatesSubscriptions {
for sc := range sa {