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(header/p2p): add trivial retrying for trustedPeer requested #1647

Merged
merged 10 commits into from
Jan 31, 2023

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Jan 26, 2023

Anyway, we should have a retry mechanism for requests here(but long term, it should be a better than this implementation), and also, this seems to be helping with #1623 during the first initialization of a node.

@Wondertan Wondertan added the kind:fix Attached to bug-fixing PRs label Jan 26, 2023
@Wondertan Wondertan self-assigned this Jan 26, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1647 (0e6fdd4) into main (b727ff6) will increase coverage by 0.02%.
The diff coverage is 63.63%.

@@            Coverage Diff             @@
##             main    #1647      +/-   ##
==========================================
+ Coverage   54.91%   54.93%   +0.02%     
==========================================
  Files         231      231              
  Lines       14999    15008       +9     
==========================================
+ Hits         8236     8244       +8     
- Misses       5882     5883       +1     
  Partials      881      881              
Impacted Files Coverage Δ
libs/header/p2p/exchange.go 66.30% <63.63%> (-0.56%) ⬇️
libs/header/p2p/server.go 76.10% <0.00%> (+1.88%) ⬆️

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

vgonkivs
vgonkivs previously approved these changes Jan 26, 2023
renaynay
renaynay previously approved these changes Jan 30, 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.

needs lint

libs/header/p2p/exchange.go Show resolved Hide resolved
libs/header/p2p/exchange.go Show resolved Hide resolved
renaynay
renaynay previously approved these changes Jan 31, 2023
@renaynay renaynay added the area:header Extended header label Jan 31, 2023
libs/header/p2p/exchange.go Outdated Show resolved Hide resolved
libs/header/p2p/exchange.go Outdated Show resolved Hide resolved
libs/header/p2p/exchange.go Show resolved Hide resolved
walldiss
walldiss previously approved these changes Jan 31, 2023
@Wondertan Wondertan merged commit 64f83cc into main Jan 31, 2023
@Wondertan Wondertan deleted the hlib/retry-headerex branch January 31, 2023 20:20
renaynay pushed a commit that referenced this pull request Jan 31, 2023
Anyway, we should have a retry mechanism for requests here(but long term, it should be better than this implementation), and also, this is helping with #1623 during the first initialization of a node.
renaynay pushed a commit that referenced this pull request Feb 1, 2023
Anyway, we should have a retry mechanism for requests here(but long term, it should be better than this implementation), and also, this is helping with #1623 during the first initialization of a node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:header Extended header 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