浏览代码

net/protocol/ping: Correct pong debug message.

parazyd 3 年之前
父节点
当前提交
8b1042ce17
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/net/protocol/protocol_ping.rs

+ 2 - 2
src/net/protocol/protocol_ping.rs

@@ -105,9 +105,9 @@ impl ProtocolPing {
 
 
             debug!(
             debug!(
                 target: "net::protocol_ping::run_ping_pong()",
                 target: "net::protocol_ping::run_ping_pong()",
-                "Received Pong from {}: {}ms",
-                timer.elapsed().as_millis(),
+                "Received Pong from {}: {:?}",
                 self.channel.address(),
                 self.channel.address(),
+                timer.elapsed(),
             );
             );
 
 
             // Sleep until next heartbeat
             // Sleep until next heartbeat