Publish incoming updates to more peers

This commit is contained in:
shortcutme 2017-07-27 16:30:21 +02:00
parent 35efd6b107
commit eee073c103
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -145,7 +145,7 @@ class FileRequest(object):
peer = site.addPeer(self.connection.ip, self.connection.port, return_peer=True) # Add or get peer
# On complete publish to other peers
diffs = params.get("diffs", {})
site.onComplete.once(lambda: site.publish(inner_path=inner_path, diffs=diffs, limit=2), "publish_%s" % inner_path)
site.onComplete.once(lambda: site.publish(inner_path=inner_path, diffs=diffs, limit=3), "publish_%s" % inner_path)
# Load new content file and download changed files in new thread
def downloader():