Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Apr 3, 2023
1 parent 0fb4565 commit b6eb1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var (
numActiveValidatorProcessors = cli.GetEnvInt("NUM_ACTIVE_VALIDATOR_PROCESSORS", 10)
numValidatorRegProcessors = cli.GetEnvInt("NUM_VALIDATOR_REG_PROCESSORS", 10)
timeoutGetPayloadRetryMs = cli.GetEnvInt("GETPAYLOAD_RETRY_TIMEOUT_MS", 100)
timeoutGetPayloadResponseMs = cli.GetEnvInt("GETPAYLOAD_RESPONSE_TIMEOUT_MS", 1000)
getPayloadResponseDelayMs = cli.GetEnvInt("GETPAYLOAD_DELAY_MS", 1000)

apiReadTimeoutMs = cli.GetEnvInt("API_TIMEOUT_READ_MS", 1500)
apiReadHeaderTimeoutMs = cli.GetEnvInt("API_TIMEOUT_READHEADER_MS", 600)
Expand Down Expand Up @@ -986,7 +986,7 @@ func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request)
}

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

api.RespondOK(w, getPayloadResp)
log = log.WithFields(logrus.Fields{
Expand Down

0 comments on commit b6eb1e5

Please sign in to comment.