Skip to content

Commit

Permalink
Fix archive relay disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinOndejka committed Apr 29, 2024
1 parent b39653d commit 038bf39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/zeko/sequencer/archive_relay/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ let rec run ~logger ~zeko_uri ~archive_uri () =
Thread_safe.block_on_async (fun () ->
Conduit_async.V3.with_connection_uri zeko_uri (fun _ r w ->
print_endline "Connected to zeko" ;
let r, w = Websocket_async.client_ez zeko_uri r w in
let r, w =
Websocket_async.client_ez ~heartbeat:(Time_ns.Span.of_sec 15.)
zeko_uri r w
in

let%bind () = handshake r w in
let%bind () = subscribe w in
Expand Down

0 comments on commit 038bf39

Please sign in to comment.