mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-07-01 12:54:52 +03:00
chore: cargo fmt for peer-version code
This commit is contained in:
committed by
Ferdinand Schober
parent
32b6683cda
commit
c2f6e172bb
@@ -203,7 +203,10 @@ async fn connect_to_handle(
|
||||
// mirrors a Hello back so the receive loop can populate
|
||||
// `peer_commit`. Old peers will silently skip this event
|
||||
// per the forward-compat handler in [`receive_loop`].
|
||||
let (buf, len) = ProtoEvent::Hello { commit: local_commit() }.into();
|
||||
let (buf, len) = ProtoEvent::Hello {
|
||||
commit: local_commit(),
|
||||
}
|
||||
.into();
|
||||
if let Err(e) = conn.send(&buf[..len]).await {
|
||||
log::debug!("hello send to {addr} failed: {e}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user