Push updates to newer clients first
This commit is contained in:
parent
65e5d05a9e
commit
4690a111bf
1 changed files with 1 additions and 0 deletions
|
@ -452,6 +452,7 @@ class Site(object):
|
|||
num_connected_peers = len(peers)
|
||||
|
||||
random.shuffle(peers)
|
||||
peers = sorted(peers, key=lambda peer: peer.connection.handshake.get("rev", 0) < config.rev - 100) # Prefer newer clients
|
||||
|
||||
# Add more, non-connected peers
|
||||
peers_more = self.peers.values()
|
||||
|
|
Loading…
Reference in a new issue