mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
Apply suggestions from code review
Co-Authored-By: Demi Obenour <48690212+DemiMarie-parity@users.noreply.github.com>
This commit is contained in:
@@ -177,7 +177,7 @@ impl MdnsService {
|
||||
// **Note**: Why does `next` take ownership of itself?
|
||||
//
|
||||
// `MdnsService::next` needs to be called from within `NetworkBehaviour`
|
||||
// implementations. Given that traits can not have async methods the
|
||||
// implementations. Given that traits cannot have async methods the
|
||||
// respective `NetworkBehaviour` implementation needs to somehow keep the
|
||||
// Future returned by `MdnsService::next` across classic `poll`
|
||||
// invocations. The instance method `next` can either take a reference or
|
||||
@@ -249,7 +249,7 @@ impl MdnsService {
|
||||
}
|
||||
},
|
||||
Err(_) => {
|
||||
// Error are non-fatal and can happen if we get disconnected from example.
|
||||
// Errors are non-fatal and can happen if we get disconnected from the network.
|
||||
// The query interval will wake up the task at some point so that we can try again.
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user