72-pull-rate-in-configuration

- Added pull rate to configuration (finally) so this can
be modified by an administrator.
This commit is contained in:
Tim Beatham
2023-12-31 12:44:50 +00:00
parent 9e1058e0f2
commit fd29af73e3
15 changed files with 138 additions and 27 deletions

View File

@@ -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 {