synapsecns/sanguine

View on GitHub
services/omnirpc/client/client.go

Summary

Maintainability
A
35 mins
Test Coverage

Method rpcClient.GetChainIDs has 5 return statements (exceeds 4 allowed).
Open

func (c *rpcClient) GetChainIDs(ctx context.Context) (chainIDs []int, err error) {
    req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("%s/chain-ids", c.endpoint), nil)
    if err != nil {
        return nil, fmt.Errorf("could not create request: %w", err)
    }
Severity: Major
Found in services/omnirpc/client/client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status