diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index f0b73a9..af54356 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -125,7 +125,7 @@ func (cc IBCCollector) Collect(ch chan<- prometheus.Metric) { []string{(*cc.RPCs)[path.Chain2.ChainName].ChainID, path.Chain2.ClientID, (*cc.RPCs)[path.Chain1.ChainName].ChainID, status}..., ) - stuckPackets, err := ibc.GetChannelInfo(path, cc.RPCs) + stuckPackets, err := ibc.GetChannelsInfo(path, cc.RPCs) if err != nil { status = errorStatus diff --git a/pkg/ibc/ibc.go b/pkg/ibc/ibc.go index bf87060..2f16ed4 100644 --- a/pkg/ibc/ibc.go +++ b/pkg/ibc/ibc.go @@ -88,7 +88,7 @@ func GetClientsInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (ClientsI return clientsInfo, nil } -func GetChannelInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (ChannelsInfo, error) { +func GetChannelsInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (ChannelsInfo, error) { ctx := context.Background() channelInfo := ChannelsInfo{}