Skip to content

Commit f2a05bc

Browse files
committed
Fix unix schema bug.
1 parent 6190492 commit f2a05bc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

rsocket-transport-unix/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ impl From<String> for UnixClientTransport {
9797

9898
impl From<&str> for UnixClientTransport {
9999
fn from(addr: &str) -> UnixClientTransport {
100-
let socket_addr: String = if addr.starts_with("tcp://") || addr.starts_with("TCP://") {
101-
addr.chars().skip(6).collect::<String>()
100+
let socket_addr: String = if addr.starts_with("unix://") || addr.starts_with("UNIX://") {
101+
addr.chars().skip(7).collect::<String>()
102102
} else {
103103
addr.to_string()
104104
};

rsocket-transport-unix/src/server.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ impl Drop for UnixServerTransport {
5151
std::fs::remove_file(&self.addr.as_str()).unwrap();
5252
}
5353
}
54-
// impl From<SocketAddr> for UnixServerTransport {
55-
// fn from(addr: SocketAddr) -> UnixServerTransport {
56-
// UnixServerTransport::new(addr)
57-
// }
58-
// }
5954

6055
impl From<String> for UnixServerTransport {
6156
fn from(addr: String) -> UnixServerTransport {

0 commit comments

Comments
 (0)