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

Clean Up Of Dynamic Subscriptions #5690

Merged
merged 3 commits into from
Apr 30, 2020
Merged

Clean Up Of Dynamic Subscriptions #5690

merged 3 commits into from
Apr 30, 2020

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 30, 2020

What type of PR is this?

Feature Improvement

What does this PR do? Why is it needed?

This PR improves subnet subscriptions for aggregators. Previously we did not subscribe
if we could not find a relevant peer. However this is resolved by subscribing to the
subnet at all times and then searching for the peer.

This also adds in a regression test for #5683 .

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas requested a review from a team as a code owner April 30, 2020 08:47
@nisdas nisdas added Ready For Review A pull request ready for code review Networking P2P related items labels Apr 30, 2020
@codecov
Copy link

codecov bot commented Apr 30, 2020

Codecov Report

Merging #5690 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5690   +/-   ##
=======================================
  Coverage   20.95%   20.95%           
=======================================
  Files         240      240           
  Lines       21453    21453           
=======================================
  Hits         4495     4495           
  Misses      16077    16077           
  Partials      881      881           

Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

missing tests for subscribeAggregatorSubnet

@nisdas
Copy link
Member Author

nisdas commented Apr 30, 2020

I just changed the name for subscribeAggregatorSubnet , also unit testing this is difficult because this
function touches onto discovery and I am not sure if its possible to reliably test discovery all the way from the sync package. Most of our brittle tests in p2p are discovery related.

@rauljordan rauljordan merged commit 5f53f9f into master Apr 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the cleanUpOfSubscriptions branch April 30, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking P2P related items Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants