mongo-rust-driver icon indicating copy to clipboard operation
mongo-rust-driver copied to clipboard

`ServerAddress` should use `std::net` types to pass a TCP socket.

Open JonathanWoollett-Light opened this issue 1 year ago • 2 comments

ServerAddress should make use of existing standard library types to pass the TCP socket e.g. SocketAddr. Passing it as a string (e.g. ServerAddress::Tcp { host "my_socket", port: Some(4040) }) is error prone.

JonathanWoollett-Light avatar Sep 15 '24 15:09 JonathanWoollett-Light