Add a default timeout on google APIs

pull/370/head
Mike Lang 1 year ago
parent b9b7a6ca27
commit c65eb2eae3

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

Loading…
Cancel
Save