Skip to content

Commit

Permalink
chore: remove send bid metric
Browse files Browse the repository at this point in the history
  • Loading branch information
iowar committed Sep 13, 2024
1 parent e3342e3 commit 2f3a62d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/mevcommit/bidderapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,8 @@ func (b *Bidder) SendBid(input interface{}, amount string, blockNumber, decaySta

ctx := context.Background()

// Timer before creating context
startTimeBeforeContext := time.Now()

// Send the bid request to the mev-commit client
response, err := b.client.SendBid(ctx, bidRequest)
endTime := time.Since(startTimeBeforeContext).Milliseconds()
fmt.Println("Time taken to send bid:", endTime)
if err != nil {
log.Error("Failed to send bid", "error", err)
return nil, fmt.Errorf("failed to send bid: %w", err)
Expand Down

0 comments on commit 2f3a62d

Please sign in to comment.