lib/zold/commands/remote.rb in zold-0.11.7 vs lib/zold/commands/remote.rb in zold-0.11.8
- old
+ new
@@ -139,10 +139,10 @@
@log.info("There are #{@remotes.all.count} remote nodes in the list")
end
def trim(opts)
@remotes.all.each do |r|
- remove(r[:host], r[:port], opts) if r[:errors] > 20
+ remove(r[:host], r[:port], opts) if r[:errors] > Remotes::TOLERANCE
end
@log.info("The list of remotes trimmed, #{@remotes.all.count} nodes left there")
end
def update(opts, deep = true)