Skip to content

Commit

Permalink
Replace nats deprecated DefaultOptions with GetDefaultOptions() (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariash authored Aug 19, 2024
1 parent b92e47a commit 1ed8242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diegonats/nats_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (nc *natsClient) SetPingInterval(interval time.Duration) {
}

func (nc *natsClient) Connect(urls []string) (chan struct{}, error) {
options := nats.DefaultOptions
options := nats.GetDefaultOptions()
options.Servers = urls
options.ReconnectWait = 500 * time.Millisecond
options.MaxReconnect = -1
Expand Down

0 comments on commit 1ed8242

Please sign in to comment.