fix: improve log

This commit is contained in:
Yujia Qiao 2022-01-13 20:44:59 +08:00
parent 7a35e9e4f2
commit 2de9147a0f
No known key found for this signature in database
GPG Key ID: DC129173B148701B
1 changed files with 1 additions and 4 deletions

View File

@ -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");