Skip to content

Commit

Permalink
Fix rustfmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored May 23, 2023
1 parent 7c5d6b6 commit f4dcdc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zebra-network/src/policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ impl<Req: Clone + std::fmt::Debug, Res, E: std::fmt::Debug> Policy<Req, Res, E>
Some(
// Let other tasks run, so we're more likely to choose a different peer,
// and so that any notfound inv entries win the race to the PeerSet.
//
// # Security
//
// We want to choose different peers for retries, so we have a better chance of getting each block.
// This is implemented by the connection state machine sending synthetic `notfound`s to the
// This is implemented by the connection state machine sending synthetic `notfound`s to the
// `InventoryRegistry`, as well as forwarding actual `notfound`s from peers.
Box::pin(tokio::task::yield_now().map(move |()| retry_outcome)),
)
Expand Down
2 changes: 1 addition & 1 deletion zebra-network/src/protocol/external/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl TryFrom<Message> for VersionMessage {
}

// TODO: add tests for Error conversion and Reject message serialization
// (Zebra does not currently send reject messages, and it ignores received reject messages.)
// (Zebra does not currently send reject messages, and it ignores received reject messages.)
impl<E> From<E> for Message
where
E: Error,
Expand Down

0 comments on commit f4dcdc0

Please sign in to comment.