Apply suggestions from code review

Co-Authored-By: Demi Obenour <48690212+DemiMarie-parity@users.noreply.github.com>
This commit is contained in:
Max Inden
2020-01-06 11:13:23 +01:00
committed by GitHub
parent 90e0044dd6
commit 74790cd514

View File

@@ -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.
},
},