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

Optimize some code in async server.rs #264

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

jokemanfire
Copy link
Contributor

1、Modify the unit of measurement for timeout
2、Add clearly error message
3、Add Check if it is already shutdown no need select in handle_msg

1、Modify the unit of measurement for timeout
2、Add clearly error message
3、Add Check if it is already shutdown no need select in handle_msg

Signed-off-by: jokemanfire <[email protected]>
Copy link
Member

@Tim-Zhang Tim-Zhang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jokemanfire

}
});
wait_rx.await.unwrap_or_default();
//Check if it is already shutdown no need select wait
Copy link

Choose a reason for hiding this comment

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

How about // If it is already shut down, no need to select wait

@teawater teawater merged commit 7943e3e into containerd:master Dec 26, 2024
10 checks passed
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.

4 participants