services/omnirpc/chainmanager/manager.go
Method chainManager.setupMetrics
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *chainManager) setupMetrics() error {
meterMaid := c.handler.Meter(meter)
blockGauge, err := meterMaid.Int64ObservableGauge(blockNumberMetric)
if err != nil {
return fmt.Errorf("could not create histogram: %w", err)
Function sortInfoList
has 5 return statements (exceeds 4 allowed). Open
Open
func sortInfoList(rpcInfoList []rpcinfo.Result) []rpcinfo.Result {
sort.Slice(rpcInfoList, func(i, j int) bool {
// ignore latencies with an error
if rpcInfoList[i].HasError {
return false