mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
chore: fix some function names in comment
Signed-off-by: highcloudwind <highcloud@aliyun.com>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user