Skip to content

Commit

Permalink
Merge pull request #521 from kkaneda/kkaneda/gossip_comment
Browse files Browse the repository at this point in the history
Two tiny comment fixes to the gossip package
  • Loading branch information
kkaneda committed Mar 31, 2015
2 parents 3187089 + 92290eb commit c9e61e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gossip/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

const (
// maxWaitForNewGossip is minimum wait for new gossip before a
// maxWaitForNewGossip is maximum wait for new gossip before a
// peer is considered a poor source of good gossip and is GC'd.
maxWaitForNewGossip = 1 * time.Minute
)
Expand Down
4 changes: 2 additions & 2 deletions gossip/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ the system with minimal total hops. The algorithm is as follows:
connected peers < maxPeers, choose random peer from those
originating info > maxToleratedHops, start it, and goto #2.
c. If sentinelGossip is missing or expired, node is considered
partitioned; goto #1.
c. If sentinel gossip keyed by KeySentinel is missing or expired,
node is considered partitioned; goto #1.
3 On connect, if node has too many connected clients, gossip requests
are returned immediately with an alternate address set to a random
Expand Down

0 comments on commit c9e61e8

Please sign in to comment.