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(nodebuilder/p2p): Add errors for all methods #1539

Merged
merged 2 commits into from
Dec 23, 2022

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Dec 22, 2022

Based on #1429

Adds an error as a return value for all methods as it is needed for elevated permission methods.

@renaynay renaynay added area:p2p kind:fix Attached to bug-fixing PRs area:api Related to celestia-node API labels Dec 22, 2022
@renaynay renaynay self-assigned this Dec 22, 2022
@Wondertan Wondertan enabled auto-merge (squash) December 22, 2022 20:37
@Wondertan
Copy link
Member

Seems to include auth commands

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #1539 (e3eb7d1) into main (bcaa431) will decrease coverage by 0.07%.
The diff coverage is 30.98%.

@@            Coverage Diff             @@
##             main    #1539      +/-   ##
==========================================
- Coverage   55.12%   55.04%   -0.08%     
==========================================
  Files         211      211              
  Lines       12939    12953      +14     
==========================================
- Hits         7132     7130       -2     
- Misses       5080     5095      +15     
- Partials      727      728       +1     
Impacted Files Coverage Δ
nodebuilder/p2p/mocks/api.go 9.74% <0.00%> (-0.90%) ⬇️
nodebuilder/p2p/p2p.go 55.55% <64.70%> (+0.55%) ⬆️
header/core/listener.go 52.83% <0.00%> (-5.67%) ⬇️

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

@renaynay
Copy link
Member Author

yes @Wondertan it's based on authcmd forgot to mention

@Wondertan
Copy link
Member

Should be in draft then

@renaynay renaynay marked this pull request as draft December 23, 2022 09:51
auto-merge was automatically disabled December 23, 2022 09:51

Pull request was converted to draft

@renaynay renaynay marked this pull request as ready for review December 23, 2022 12:34
@renaynay renaynay merged commit 0ab5df6 into celestiaorg:main Dec 23, 2022
@renaynay renaynay deleted the add-errs branch December 23, 2022 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Related to celestia-node API 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