| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // peerSyncInterval is the duration between two consecutive |
| // peer contacts. During every peer contact, the initiator |
| // obtains any pending updates from that peer. |
| peerSyncInterval = 50 * time.Millisecond |
| // contactPeers wakes up every peerSyncInterval to select a peer, and |
| func (s *syncService) contactPeers() { |
| ticker := time.NewTicker(peerSyncInterval) |