Skip to content

Commit

Permalink
review: simplify calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
0x416e746f6e committed May 7, 2024
1 parent 5efad96 commit dfd46db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request)
msNeededForPublishing = uint64(timeAfterPublish - timeBeforePublish)
log = log.WithField("timestampAfterPublishing", timeAfterPublish)
log.WithField("msNeededForPublishing", msNeededForPublishing).Info("block published through beacon node")
metrics.PublishBlockLatencyHistogram.Record(req.Context(), float64(timeAfterPublish-timeBeforePublish))
metrics.PublishBlockLatencyHistogram.Record(req.Context(), float64(msNeededForPublishing))

// give the beacon network some time to propagate the block
time.Sleep(time.Duration(getPayloadResponseDelayMs) * time.Millisecond)
Expand Down

0 comments on commit dfd46db

Please sign in to comment.