Add a default timeout on google APIs

pull/370/head
Mike Lang 12 months ago
parent b9b7a6ca27
commit c65eb2eae3

@ -6,8 +6,9 @@ import gevent
from .requests import InstrumentedSession
# Wraps all requests in some metric collection
# Wraps all requests in some metric collection and default timeouts
requests = InstrumentedSession()
requests.timeout = 30
class GoogleAPIClient(object):

Loading…
Cancel
Save