Fix get peers to sync in network synv (#640)

This commit is contained in:
Jonathan Zernik 2021-01-13 17:50:54 -08:00 committed by GitHub
parent 41278868bd
commit 6bef275057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,7 @@ class NetworkSync(ABC):
self.stopped.set()
def sync(self):
peers = self.squeak_controller.get_peers()
for peer in peers:
for peer in self.get_peers_to_sync():
sync_peer_thread = threading.Thread(
target=self._sync_peer,
args=(peer,),