mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 18:41:22 +00:00
core/muxing: Rename close
to poll_close
(#2666)
It is common practise to prefix functions that return a `Poll` with `poll_`.
This commit is contained in:
@ -346,10 +346,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
fn close(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
fn poll_close(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
match self {
|
||||
EitherOutput::First(inner) => inner.close(cx).map_err(|e| e.into()),
|
||||
EitherOutput::Second(inner) => inner.close(cx).map_err(|e| e.into()),
|
||||
EitherOutput::First(inner) => inner.poll_close(cx).map_err(|e| e.into()),
|
||||
EitherOutput::Second(inner) => inner.poll_close(cx).map_err(|e| e.into()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user