synapsecns/sanguine

View on GitHub
services/omnirpc/proxy/forward.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Forwarder.forwardRequest has 6 return statements (exceeds 4 allowed).
Open

func (f *Forwarder) forwardRequest(parentCtx context.Context, endpoint string) (_ *rawResponse, err error) {
    ctx, span := f.tracer.Start(parentCtx, "forwardRequest",
        trace.WithAttributes(attribute.String("endpoint", endpoint)),
    )

Severity: Major
Found in services/omnirpc/proxy/forward.go - About 40 mins to fix

    Method Forwarder.standardizeBatch has 6 return statements (exceeds 4 allowed).
    Open

    func (f *Forwarder) standardizeBatch(ctx context.Context, body []byte) (res []byte, anyErr bool, err error) {
        dec := json.NewDecoder(bytes.NewReader(body))
    
        _, err = dec.Token() // skip '['
        if err != nil {
    Severity: Major
    Found in services/omnirpc/proxy/forward.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status