Skip to content

Commit

Permalink
update timeouts
Browse files Browse the repository at this point in the history
update `http_timeout` and `alert_http_timeout` default as 1 second
  • Loading branch information
Hyung-bharvest authored Dec 18, 2019
1 parent d1c3bbd commit 461417c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terra_oracle_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@

# By default, python-requests does not use a timeout. We need to specify
# a timeout on each call to ensure we never get stuck in network IO.
http_timeout = 60
http_timeout = 1

# Separate timeout for alerting calls
alert_http_timeout = 10
alert_http_timeout = 1

# Global requests session for HTTP/1.1 keepalive
# (unfortunately, the timeout cannot be set globally)
Expand Down

0 comments on commit 461417c

Please sign in to comment.