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

fix(share/discovery): decouple peer discovery from event processing #1639

Merged
merged 5 commits into from
Jan 30, 2023

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Jan 25, 2023

Overview

Starting to listen to subscriptions async will help us to avoid any blocking in the case when we will not have the needed amount of FNs and will be blocked in FindPeers.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@vgonkivs vgonkivs added area:p2p kind:fix Attached to bug-fixing PRs labels Jan 25, 2023
@vgonkivs vgonkivs self-assigned this Jan 25, 2023
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

let's test this on arabica bootstrappers

@Wondertan Wondertan changed the title fix(share/discovery): fix discovery fix(share/discovery): decouple peer discovery from event processing Jan 25, 2023
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

Just two opinion farts, but LGTM

share/availability/discovery/discovery.go Show resolved Hide resolved
share/availability/discovery/discovery.go Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #1639 (9840031) into main (f3b334f) will increase coverage by 0.05%.
The diff coverage is 64.28%.

@@            Coverage Diff             @@
##             main    #1639      +/-   ##
==========================================
+ Coverage   54.91%   54.97%   +0.05%     
==========================================
  Files         231      231              
  Lines       14995    15010      +15     
==========================================
+ Hits         8235     8251      +16     
+ Misses       5880     5879       -1     
  Partials      880      880              
Impacted Files Coverage Δ
share/availability/discovery/discovery.go 37.81% <64.28%> (+9.24%) ⬆️
nodebuilder/p2p/opts.go 28.57% <0.00%> (ø)
core/listener.go 51.66% <0.00%> (+0.81%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@renaynay renaynay enabled auto-merge (squash) January 30, 2023 14:55
@renaynay renaynay merged commit 3a1353c into celestiaorg:main Jan 30, 2023
renaynay added a commit to renaynay/celestia-node that referenced this pull request Jan 31, 2023
…elestiaorg#1639)

## Overview
Starting to listen to subscriptions async will help us to avoid any
blocking in the case when we will not have the needed amount of FNs and
will be blocked in `FindPeers`.
## Checklist

- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [x] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords

---------

Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
renaynay added a commit that referenced this pull request Feb 1, 2023
…1639)

## Overview
Starting to listen to subscriptions async will help us to avoid any
blocking in the case when we will not have the needed amount of FNs and
will be blocked in `FindPeers`.
## Checklist

- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [x] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords

---------

Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:p2p kind:fix Attached to bug-fixing PRs
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants