Skip to content

Commit

Permalink
always open new REST HTTP connections
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Jul 21, 2022
1 parent 8028e62 commit 038bd4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beacon_chain/nimbus_beacon_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ proc init*(T: type BeaconNode,

let restClient =
if config.payloadBuilder.isSome:
RestClientRef.new(config.payloadBuilder.get).valueOr:
RestClientRef.new(
config.payloadBuilder.get,
httpFlags = {HttpClientFlag.NewConnectionAlways}).valueOr:
warn "Payload builder REST client setup failed",
payloadBuilderUrl = config.payloadBuilder.get
nil
Expand Down

0 comments on commit 038bd4e

Please sign in to comment.