mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
xous-rs: Simplify TcpStream::connect.
This commit is contained in:
parent
0a1382224a
commit
b4e020b027
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ lazy_static::lazy_static! {
|
||||||
|
|
||||||
// Note: &* is required due to how `lazy_static` works behind the scenes:
|
// Note: &* is required due to how `lazy_static` works behind the scenes:
|
||||||
// https://github.com/rust-lang-nursery/lazy-static.rs/issues/119#issuecomment-419595818
|
// https://github.com/rust-lang-nursery/lazy-static.rs/issues/119#issuecomment-419595818
|
||||||
let mut conn = TcpStream::connect(&*NETWORK_CONNECT_ADDRESS).expect("unable to connect to Xous kernel");
|
let mut conn = TcpStream::connect(*NETWORK_CONNECT_ADDRESS).expect("unable to connect to Xous kernel");
|
||||||
|
|
||||||
// Disable Nagel's algorithm, since we're running locally and managing buffers ourselves
|
// Disable Nagel's algorithm, since we're running locally and managing buffers ourselves
|
||||||
conn.set_nodelay(true).unwrap();
|
conn.set_nodelay(true).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue