services/omnirpc/proxy/forward.go
Method Forwarder.forwardRequest
has 6 return statements (exceeds 4 allowed). Open
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)),
)
Method Forwarder.standardizeBatch
has 6 return statements (exceeds 4 allowed). Open
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 {