You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
which unnecessarily invokes Gossip() twice. Which is inefficient.
And if Gossip() returned nil it can lead to a panic further along (in the GossipSender's GossipData.Merge invocation), or it can cause the GossipSender goroutine to terminate (since it treats nil as a stop), which would cause all subsequent gossip on that particular channel+connection to be discarded.
Fortunately that can't happen since only SurrogateGossiper.Gossip() returns nil, and does so always, hence would not get past the first line of the above code.
The text was updated successfully, but these errors were encountered:
I just found the following in
Router.SendAllGossipDown
:which unnecessarily invokes
Gossip()
twice. Which is inefficient.And if
Gossip()
returned nil it can lead to a panic further along (in theGossipSender
'sGossipData.Merge
invocation), or it can cause theGossipSender
goroutine to terminate (since it treatsnil
as a stop), which would cause all subsequent gossip on that particular channel+connection to be discarded.Fortunately that can't happen since only
SurrogateGossiper.Gossip()
returns nil, and does so always, hence would not get past the first line of the above code.The text was updated successfully, but these errors were encountered: