services/rfq/api/rest/rfq.go
Method QuoterAPIServer.collectRelayerResponses
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
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),
))
Function getBestQuote
has 5 return statements (exceeds 4 allowed). Open
Open
func getBestQuote(a, b *model.QuoteData) *model.QuoteData {
if a == nil && b == nil {
return nil
}
if a == nil {