lib/zold/commands/push.rb in zold-0.16.16 vs lib/zold/commands/push.rb in zold-0.16.17
- old
+ new
@@ -90,10 +90,10 @@
content = @wallets.find(id) do |wallet|
raise "The wallet #{id} is absent" unless wallet.exists?
IO.read(wallet.path)
end
uri = "/wallet/#{id}"
- response = r.http(uri).put(content)
+ response = r.http(uri).put(content, timeout: 60)
@wallets.find(id) do |wallet|
if response.code == '304'
@log.info("#{r}: same version of #{wallet.mnemo} there, in #{Age.new(start, limit: 0.5)}")
return 0
end