Add doc about Ping cmd to README, change the internal data type of Ping cmd to Bytes, and rm unnecessary reference (#118)
This commit is contained in:
@@ -21,7 +21,7 @@ async fn ping_pong_with_message() {
|
||||
let (addr, _) = start_server().await;
|
||||
let mut client = client::connect(addr).await.unwrap();
|
||||
|
||||
let pong = client.ping(Some("你好世界".to_string())).await.unwrap();
|
||||
let pong = client.ping(Some("你好世界".into())).await.unwrap();
|
||||
assert_eq!("你好世界".as_bytes(), &pong[..]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user