소스 검색

fix: improve log

Yujia Qiao 4 년 전
부모
커밋
2de9147a0f
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/client.rs

+ 1 - 4
src/client.rs

@@ -392,10 +392,7 @@ impl<T: 'static + Transport> ControlChannel<T> {
 
         // Read hello
         debug!("Reading hello");
-        let nonce = match read_hello(&mut conn)
-            .await
-            .with_context(|| "Failed to read hello from the server")?
-        {
+        let nonce = match read_hello(&mut conn).await? {
             ControlChannelHello(_, d) => d,
             _ => {
                 bail!("Unexpected type of hello");