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

feat(p2p)!: parameters for Subscriber #118

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Oct 11, 2023

  • Adds params and options for Subscriber
  • NetworkID was optional in other places besides Subscriber.
  • Fixes issue with optional network id where it results in '//'
  • Unifies optionality for metrics
    • Before we called InitMetrics on the component, while we could leverage existing options
    • Thus it's breaking. We wanted to break Getter interface anyway.
  • Fixed old breaking TODO

* Adds params and options for Subscriber
* NetworkID was optional in other places besides Subscriber.
* Fixes issue with optional network id where it results in '//'
* Unifies optionality for metrics
	* Before we called InitMetrics on the component, while we could leverage existing options
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2023

Codecov Report

Merging #118 (3c03a02) into main (2fd3b1b) will increase coverage by 0.41%.
Report is 15 commits behind head on main.
The diff coverage is 55.17%.

@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   68.60%   69.02%   +0.41%     
==========================================
  Files          37       37              
  Lines        2934     2967      +33     
==========================================
+ Hits         2013     2048      +35     
+ Misses        770      768       -2     
  Partials      151      151              
Files Coverage Δ
p2p/helpers.go 80.51% <100.00%> (+2.25%) ⬆️
sync/options.go 88.00% <100.00%> (ø)
sync/sync.go 73.14% <ø> (ø)
p2p/exchange.go 84.93% <40.00%> (+2.76%) ⬆️
p2p/metrics.go 14.81% <0.00%> (+1.48%) ⬆️
p2p/options.go 37.34% <0.00%> (-3.45%) ⬇️
p2p/subscriber.go 48.52% <61.53%> (+3.88%) ⬆️

... and 4 files with indirect coverage changes

distractedm1nd
distractedm1nd previously approved these changes Oct 11, 2023
renaynay
renaynay previously approved these changes Oct 11, 2023
p2p/helpers.go Outdated Show resolved Hide resolved
p2p/helpers.go Outdated Show resolved Hide resolved
p2p/helpers.go Outdated Show resolved Hide resolved
Co-authored-by: Viacheslav <viacheslavgonkivskyi@gmail.com>
Copy link
Member

@vgonkivs vgonkivs left a comment

Choose a reason for hiding this comment

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

LGTM

@Wondertan Wondertan merged commit df01474 into main Oct 11, 2023
2 checks passed
@Wondertan Wondertan deleted the p2p/susbcriber/params branch October 11, 2023 13:26
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.

5 participants