mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-06 16:12:18 +00:00
Merge pull request #1375 from tomaka/another-review-fix2
Another review fix for stable-futures branch
This commit is contained in:
commit
fd7c06ed23
@ -1644,7 +1644,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sends an event to the handler of the node.
|
/// Sends an event to the handler of the node.
|
||||||
pub fn send_event<'s: 'a>(&'s mut self, event: TInEvent) -> impl Future<Output = ()> + 's + 'a {
|
pub fn send_event(&'a mut self, event: TInEvent) -> impl Future<Output = ()> + 'a {
|
||||||
let mut event = Some(event);
|
let mut event = Some(event);
|
||||||
futures::future::poll_fn(move |cx| {
|
futures::future::poll_fn(move |cx| {
|
||||||
match self.poll_ready_event(cx) {
|
match self.poll_ready_event(cx) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user