Update Weave Mesh library to 0.4

This commit is contained in:
Bryan Boreham committed 2019-11-05 12:26:14 +00:00
1 parent b871c1eecb
commit 3780ce4dfb
8 files changed
+48 -45

No files matched your search

+3 -3
View File
@@ -24,8 +24,8 @@ var (
const (
tcpHeartbeat = 30 * time.Second
maxDuration = time.Duration(math.MaxInt64)
acceptMaxTokens = 100
acceptTokenDelay = 100 * time.Millisecond // [2]
acceptMaxTokens = 20
acceptTokenDelay = 50 * time.Millisecond
)
// Config defines dimensions of configuration for the router.
@@ -233,7 +233,7 @@ func (router *Router) sendPendingGossip() bool {
// topology, and broadcasts the new set of peers to the mesh.
func (router *Router) broadcastTopologyUpdate(update peerNameSet) {
gossipData := &topologyGossipData{peers: router.Peers, update: update}
router.topologyGossip.GossipBroadcast(gossipData)
router.topologyGossip.GossipNeighbourSubset(gossipData)
}
// OnGossipUnicast implements Gossiper, but always returns an error, as a