synapsecns/sanguine

View on GitHub
services/rfq/api/rest/rfq.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method QuoterAPIServer.collectRelayerResponses has 60 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (r *QuoterAPIServer) collectRelayerResponses(ctx context.Context, request *model.PutRFQRequest, requestID string) (responses map[string]*model.WsRFQResponse) {
    ctx, span := r.handler.Tracer().Start(ctx, "collectRelayerResponses", trace.WithAttributes(
        attribute.String("user_address", request.UserAddress),
        attribute.String("request_id", requestID),
    ))
Severity: Minor
Found in services/rfq/api/rest/rfq.go - About 1 hr to fix

    Function getBestQuote has 5 return statements (exceeds 4 allowed).
    Open

    func getBestQuote(a, b *model.QuoteData) *model.QuoteData {
        if a == nil && b == nil {
            return nil
        }
        if a == nil {
    Severity: Major
    Found in services/rfq/api/rest/rfq.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status