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

p2p: move ActivationThresh in a sync.Once #1946

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented Mar 27, 2023

Guarantees that identify.ActivationThresh is only initialized once, on the first call to NewTCPNode.

category: bug
ticket: #1867

Guarantees that identify.ActivationThresh is only initialized once, on the first call to NewTCPNode.
@gsora gsora added the bug Something isn't working label Mar 27, 2023
@gsora gsora requested a review from corverroos March 27, 2023 14:00
@gsora gsora self-assigned this Mar 27, 2023
@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.08 ⚠️

Comparison is base (a331020) 55.53% compared to head (f514f8f) 55.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1946      +/-   ##
==========================================
- Coverage   55.53%   55.45%   -0.08%     
==========================================
  Files         174      174              
  Lines       22256    22295      +39     
==========================================
+ Hits        12359    12363       +4     
- Misses       8322     8358      +36     
+ Partials     1575     1574       -1     
Impacted Files Coverage Δ
p2p/p2p.go 26.69% <100.00%> (+1.08%) ⬆️

... and 12 files with indirect coverage changes

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gsora gsora added the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 27, 2023
@@ -28,10 +29,18 @@ import (
"github.com/obolnetwork/charon/app/z"
)

var activationThreshOnce = sync.Once{}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: var activationThreshOnce sync.Once

@obol-bulldozer obol-bulldozer bot merged commit f816bbf into main Mar 27, 2023
@obol-bulldozer obol-bulldozer bot deleted the gsora/p2p_race branch March 27, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants