Skip to content

Commit

Permalink
Disable async retry on connect until #440 is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Feb 5, 2025
1 parent b367da2 commit 289b204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster/nats_rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (ns *NatsRPCClient) Init() error {
conn, err := setupNatsConn(
ns.connString,
ns.appDieChan,
nats.RetryOnFailedConnect(true),
nats.RetryOnFailedConnect(false),
nats.MaxReconnects(ns.maxReconnectionRetries),
nats.Timeout(ns.connectionTimeout),
nats.Compression(ns.websocketCompression),
Expand Down
2 changes: 1 addition & 1 deletion cluster/nats_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (ns *NatsRPCServer) Init() error {
conn, err := setupNatsConn(
ns.connString,
ns.appDieChan,
nats.RetryOnFailedConnect(true),
nats.RetryOnFailedConnect(false),
nats.MaxReconnects(ns.maxReconnectionRetries),
nats.Timeout(ns.connectionTimeout),
nats.Compression(ns.websocketCompression),
Expand Down

0 comments on commit 289b204

Please sign in to comment.