mirror of
https://github.com/wownero/diff-chart.git
synced 2026-10-17 15:21:25 +02:00
set RPC timeout to 10s
This commit is contained in:
@@ -40,7 +40,8 @@ class JSONRPC(object):
|
||||
res = requests.post(
|
||||
url,
|
||||
data=json.dumps(inputs),
|
||||
headers={'content-type': 'application/json'})
|
||||
headers={'content-type': 'application/json'},
|
||||
timeout=10)
|
||||
res = res.json()
|
||||
|
||||
assert 'error' not in res, res
|
||||
|
||||
Reference in New Issue
Block a user