Rev938, Disable publish on incoming older content update to avoid network spam
This commit is contained in:
parent
08005499fb
commit
1d6f56c676
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.3.6"
|
||||
self.rev = 936
|
||||
self.rev = 938
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -563,7 +563,7 @@ class ContentManager(object):
|
|||
"We have newer %s (Our: %s, Sent: %s)" %
|
||||
(inner_path, old_content["modified"], new_content["modified"])
|
||||
)
|
||||
gevent.spawn(self.site.publish, inner_path=inner_path) # Try to fix the broken peers
|
||||
# gevent.spawn(self.site.publish, inner_path=inner_path) # Try to fix the broken peers
|
||||
return False
|
||||
if new_content["modified"] > time.time() + 60 * 60 * 24: # Content modified in the far future (allow 1 day+)
|
||||
self.log.error("%s modify is in the future!" % inner_path)
|
||||
|
|
Loading…
Reference in a new issue