chore: Add timeouts to requests (#2024)

This commit is contained in:
Sojan Jose
2021-03-31 16:39:57 +05:30
committed by GitHub
parent f5a961b27c
commit c8b81b066b
5 changed files with 24 additions and 10 deletions

View File

@@ -16,7 +16,8 @@ class LocalResource
end
def io
@io ||= uri.open
# TODO: should we use RestClient here too ?
@io ||= uri.open(read_timeout: 5)
end
def encoding