mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-18 00:49:47 +02:00
72-pull-rate-in-configuration
- Added pull rate to configuration (finally) so this can be modified by an administrator.
This commit is contained in:
@@ -84,7 +84,8 @@ func (s *SyncerImpl) Sync(correspondingMesh mesh.MeshProvider) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Peer with 2 nodes
|
||||
// Peer with 2 nodes so that there is redundnacy in
|
||||
// the situation the node leaves pre-emptively
|
||||
redundancyLength := min(len(neighbours), 2)
|
||||
gossipNodes = neighbours[:redundancyLength]
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user