Open haruki-nikaidou opened 1 week ago
Thanks for reporting.
This is true, however I would advise using ConnectOptions for setting up credentials - especially if you pass in multiple servers.
There is also #1193 that would need to be fix for that to work.
This can be of course fixed, but is a pretty low priority considering not being the most optimal way to pass credentials to the client.
Are you maybe interested in contributing?
Observed behavior
async_nats::connect
ignores all options in nats url and use default optionsExpected behavior
parse options from url
Server and client version
bug is in crate
async-nats
0.37.0Host environment
No response
Steps to reproduce
The bug is very obvious in the source code:
in
lib.rs
L1113And according to
lib.rs
L932~L1022,connect_with_options
use option in argument to override the options in url. Soconnect
ignore all options in url.reproduce: