Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix FutureTask signals memory leak #218

Merged
merged 1 commit into from
Apr 24, 2020
Merged

fix: Fix FutureTask signals memory leak #218

merged 1 commit into from
Apr 24, 2020

Conversation

TheWaWaR
Copy link
Collaborator

@TheWaWaR TheWaWaR commented Apr 24, 2020

oneshot::Sender.send() return a Future, we must use .await to poll it.

@TheWaWaR TheWaWaR requested a review from driftluo as a code owner April 24, 2020 04:58
@TheWaWaR TheWaWaR requested review from a team and zhangsoledad April 24, 2020 04:58
@@ -63,7 +63,7 @@ impl FutureTaskManager {
tokio::spawn(async move {
future::select(task, receiver).await;
trace!("future task({}) finished", task_id);
let _ = id_sender.send(task_id);
let _ = id_sender.send(task_id).await;
Copy link

@yangby-cryptape yangby-cryptape Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if is_err() then print a warning.

@TheWaWaR TheWaWaR merged commit e1d4c70 into nervosnetwork:master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants