diff options
| author | salmonik <raisersoft@proton.me> | 2026-02-28 18:16:50 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-28 18:16:50 +0100 |
| commit | 9ed5958b1057dce8bfcb34a9a983a86d0e1a720c (patch) | |
| tree | ef318a1c1806bee9f89e1a7950b4dbc871102bf1 /src/bin/client/connection.rs | |
| parent | multi file for both sides (diff) | |
| download | zagan-bet-9ed5958b1057dce8bfcb34a9a983a86d0e1a720c.tar.gz zagan-bet-9ed5958b1057dce8bfcb34a9a983a86d0e1a720c.zip | |
raw mode for client
Diffstat (limited to 'src/bin/client/connection.rs')
| -rw-r--r-- | src/bin/client/connection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/client/connection.rs b/src/bin/client/connection.rs index 9e402cb..d03dc1a 100644 --- a/src/bin/client/connection.rs +++ b/src/bin/client/connection.rs | |||
| @@ -22,7 +22,7 @@ pub fn connect(addr: &str) -> Result<TcpStream, Box<dyn std::error::Error>> { | |||
| 22 | let mut response = String::new(); | 22 | let mut response = String::new(); |
| 23 | ping_reader.read_line(&mut response).unwrap(); | 23 | ping_reader.read_line(&mut response).unwrap(); |
| 24 | let elapsed = start.elapsed(); | 24 | let elapsed = start.elapsed(); |
| 25 | println!("Connected to {} with ping delay: {:?}", addr, elapsed); | 25 | println!("\n\rConnected to {} with ping delay: {:?}", addr, elapsed); |
| 26 | Ok(s) | 26 | Ok(s) |
| 27 | } | 27 | } |
| 28 | Ok(Err(e)) => Err(Box::new(e)), | 28 | Ok(Err(e)) => Err(Box::new(e)), |
