Skip to content

Commit

Permalink
debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubwro committed Oct 2, 2023
1 parent 4651d94 commit 9c405fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/connection/reconnect.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Stuff for gracefuly handling reconnects, especially restoring subscriptions.

function reconnect(nc::Connection, host, port, con_msg)
@info "Trying to connect nats://$host:$port"
sock = retry(Sockets.connect, delays=SOCKET_CONNECT_DELAYS)(port)

@info "Connected after $(time() - start_time) s."

read_stream = sock
write_stream = sock

Expand Down

0 comments on commit 9c405fb

Please sign in to comment.