synapsecns/sanguine

View on GitHub
services/omnirpc/chainmanager/manager.go

Summary

Maintainability
A
1 hr
Test Coverage

Method chainManager.setupMetrics has 6 return statements (exceeds 4 allowed).
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)
Severity: Major
Found in services/omnirpc/chainmanager/manager.go - About 40 mins to fix

    Function sortInfoList has 5 return statements (exceeds 4 allowed).
    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
    Severity: Major
    Found in services/omnirpc/chainmanager/manager.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status