mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +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:
@ -32,7 +32,7 @@ where
|
||||
loop {
|
||||
match std::mem::replace(&mut self.state, CloseMuxerState::Done) {
|
||||
CloseMuxerState::Close(muxer) => {
|
||||
if !muxer.close(cx)?.is_ready() {
|
||||
if !muxer.poll_close(cx)?.is_ready() {
|
||||
self.state = CloseMuxerState::Close(muxer);
|
||||
return Poll::Pending;
|
||||
}
|
||||
|
Reference in New Issue
Block a user