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

tools/benchmark/utils: Use asyncio.sleep #2233

Merged
merged 2 commits into from
Dec 6, 2021
Merged

Conversation

mhchia
Copy link
Contributor

@mhchia mhchia commented Dec 2, 2021

What was wrong?

In async functions, we should use async sleep instead to avoid blocking.

How was it fixed?

Change time.sleep to asyncio.sleep. I choose asyncio.sleep since it is used in other modules as well. Please correct me if other async frameworks are more suitable.

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

Thanks @mhchia! I think those failures are just flaky. I'll add a newsfragment and merge.

@mhchia
Copy link
Contributor Author

mhchia commented Dec 4, 2021

NP. Thanks for review:)

@kclowes kclowes merged commit b65b336 into ethereum:master Dec 6, 2021
@mhchia mhchia deleted the patch-1 branch February 9, 2022 14:19
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.

2 participants