Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of default connect timeout in opts.Connect()
If one creates a nats.Options struct and does not specify a timeout, the library would use 0 for the connect timeout which would prevent the connect to succeed. If timeout is not specify, the default value (2 seconds) will now be used.
- Loading branch information