Skip to content

Commit

Permalink
[goreleaser] use me
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Feb 4, 2024
1 parent c6937bd commit 05f8e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/rfq/relayer/quoter/quoter.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (m *Manager) prepareAndSubmitQuotes(ctx context.Context, inv map[int]map[co
// We can do this by looking at the quotableTokens map, and finding the key that matches the destination chain token.
// Generates quotes for a given chain ID, address, and balance.
func (m *Manager) generateQuotes(parentCtx context.Context, chainID int, address common.Address, balance *big.Int) (_ []model.PutQuoteRequest, err error) {

Check failure on line 249 in services/rfq/relayer/quoter/quoter.go

View workflow job for this annotation

GitHub Actions / Lint (services/rfq)

calculated cyclomatic complexity for function generateQuotes is 11, max is 10 (cyclop)
ctx, span := m.metricsHandler.Tracer().Start(parentCtx, "isProfitableQuote", trace.WithAttributes(attribute.Int(metrics.ChainID, chainID)))
ctx, span := m.metricsHandler.Tracer().Start(parentCtx, "generateQuotes", trace.WithAttributes(attribute.Int(metrics.ChainID, chainID)))
defer func() {
metrics.EndSpanWithErr(span, err)
}()
Expand Down

0 comments on commit 05f8e16

Please sign in to comment.