-
Notifications
You must be signed in to change notification settings - Fork 175
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 tests on web3-bot/sync #416
base: web3-bot/sync
Are you sure you want to change the base?
Changes from 3 commits
f252a44
8b93eed
a4fa97f
ce5c811
828af5c
05ef184
bf53ecf
e141966
9224ccd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -844,7 +844,6 @@ func (gs *GossipSubRouter) pxConnect(peers []*pb.PeerInfo) { | |
case gs.connect <- ci: | ||
default: | ||
log.Debugf("ignoring peer connection attempt; too many pending connections") | ||
break | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. staticcheck reports this as an ineffective break, which I don't think is true. On the other hand, why not go through the rest of the list, maybe the channel buffer will be more free as you go? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's useless, it can be removed. |
||
} | ||
} | ||
} | ||
|
@@ -1240,7 +1239,6 @@ func (gs *GossipSubRouter) heartbeatTimer() { | |
} | ||
|
||
func (gs *GossipSubRouter) heartbeat() { | ||
defer log.EventBegin(gs.p.ctx, "heartbeat").Done() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ??? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Event tracing through the logger is deprecated. |
||
|
||
gs.heartbeatTicks++ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this here becasuse waitUntilGossipsubMeshCount was reported unused by staticcheck (the test is skipped), and this was the only place where it was used. I'd be happy to move it back for clarity if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just comment it out -- also isn't there any way to selectively disable the (imo worthless) tool?