mirror of https://github.com/rapiz1/rathole.git
fix: improve log
This commit is contained in:
parent
7a35e9e4f2
commit
2de9147a0f
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue