From 839bdaa8850d5da19d37b870c4e7a08611a514e8 Mon Sep 17 00:00:00 2001 From: Joonas Lehtimaki Date: Mon, 30 Oct 2023 15:58:21 +0200 Subject: [PATCH] chore: change naming scheme --- pkg/collector/collector.go | 2 +- pkg/ibc/ibc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{}