reportbooru: raise http timeout.

Fetching missed searches from Reportbooru sometimes failed because the
0.5 second HTTP timeout was too low.
This commit is contained in:
evazion
2020-09-21 13:29:53 -05:00
parent 9f3a9ac4e1
commit f2d611ba69

View File

@@ -3,7 +3,7 @@ class ReportbooruService
def initialize(http: Danbooru::Http.new, reportbooru_server: Danbooru.config.reportbooru_server)
@reportbooru_server = reportbooru_server
@http = http.timeout(0.5)
@http = http.timeout(1)
end
def enabled?