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:
Ting Sun
2023-03-28 22:53:33 +08:00
committed by GitHub
parent aab4e39d97
commit b1e365b62f
7 changed files with 14 additions and 12 deletions

View File

@@ -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[..]);
}