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

convert to use CancelToken from libary #1100

Merged

Conversation

pipermerriam
Copy link
Member

What was wrong?

The CancelToken has been extracted into a separate library asyncio-cancel-token.

How was it fixed?

Convert all code to use the new library version.

Cute Animal Picture

cute-animals-animals-9403180-585-437

Copy link
Contributor

@carver carver left a comment

Choose a reason for hiding this comment

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

sweet

@pipermerriam
Copy link
Member Author

@gsalgado if you have any feedback I'll clean it up post merge.

@pipermerriam pipermerriam merged commit 87819a1 into ethereum:master Jul 27, 2018
@pipermerriam pipermerriam deleted the piper/use-cancel-token-library branch July 27, 2018 17:59
@@ -42,7 +42,8 @@

from eth_hash.auto import keccak

from p2p.cancel_token import CancelToken
from cancel_token import CancelToken

from p2p.exceptions import NoEligibleNodes, OperationCancelled
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to get rid of p2p.exceptions.OperationCancelled and use the one from cancel_token instead

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

3 participants