Skip to content

Commit

Permalink
faster handleBuilderGetValidators unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Apr 26, 2023
1 parent 4fe6831 commit 0c422f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,9 @@ func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request)
// --------------------
func (api *RelayAPI) handleBuilderGetValidators(w http.ResponseWriter, req *http.Request) {
api.proposerDutiesLock.RLock()
_, err := w.Write(*api.proposerDutiesResponse)
resp := api.proposerDutiesResponse
api.proposerDutiesLock.RUnlock()
_, err := w.Write(*resp)
if err != nil {
api.log.WithError(err).Warn("failed to write response for builderGetValidators")
}
Expand Down

0 comments on commit 0c422f8

Please sign in to comment.