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

refactor(p2p): async on_new_vertex [part ?] #1155

Open
wants to merge 5 commits into
base: refactor/p2p/remove-manager
Choose a base branch
from

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Oct 15, 2024

Depends on #1142

Motivation

For the P2P Multiprocess project, the on_new_vertex method will be called in the node main process from the P2P subprocess via IPC. This call will be async, so this PR refactors the callers of this method to support it.

Acceptance Criteria

  • Change P2PDependencies.on_new_vertex to async, bubbling it up to all its callers.
  • Implement new twisted.call_coro_later utils function.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Oct 15, 2024
@glevco glevco marked this pull request as ready for review October 15, 2024 16:12
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.50%. Comparing base (2af3b11) to head (2c9988d).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           refactor/p2p/remove-manager    #1155      +/-   ##
===============================================================
- Coverage                        84.59%   84.50%   -0.10%     
===============================================================
  Files                              320      321       +1     
  Lines                            24474    24480       +6     
  Branches                          3751     3746       -5     
===============================================================
- Hits                             20705    20686      -19     
- Misses                            3056     3074      +18     
- Partials                           713      720       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco changed the title refactor(p2p): async on_new_vertex refactor(p2p): async on_new_vertex [part 6/7] Oct 15, 2024
@glevco glevco force-pushed the refactor/p2p/remove-manager branch from 1d77698 to b204c2c Compare October 15, 2024 20:17
@glevco glevco force-pushed the refactor/p2p/async-on-new-vertex branch from 67866a6 to f3a5c96 Compare October 15, 2024 20:23
@glevco glevco force-pushed the refactor/p2p/remove-manager branch from b204c2c to 2af3b11 Compare October 15, 2024 20:31
@glevco glevco force-pushed the refactor/p2p/async-on-new-vertex branch from f3a5c96 to 2c9988d Compare October 15, 2024 20:32
@glevco glevco changed the title refactor(p2p): async on_new_vertex [part 6/7] refactor(p2p): async on_new_vertex [part 6/8] Oct 15, 2024
@glevco glevco changed the title refactor(p2p): async on_new_vertex [part 6/8] refactor(p2p): async on_new_vertex [part 7/8] Oct 22, 2024
@glevco glevco force-pushed the refactor/p2p/remove-manager branch 9 times, most recently from 10c2ec4 to b6b19b2 Compare October 23, 2024 17:47
@glevco glevco changed the title refactor(p2p): async on_new_vertex [part 7/8] refactor(p2p): async on_new_vertex [part ?] Oct 23, 2024
@glevco glevco force-pushed the refactor/p2p/remove-manager branch from b6b19b2 to 58633dc Compare November 5, 2024 18:51
@glevco glevco force-pushed the refactor/p2p/remove-manager branch 3 times, most recently from 45ede7d to bf1e568 Compare November 8, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant