This commit is contained in:
yystopf 2021-12-14 10:13:28 +08:00
parent 6a2ad67386
commit e3df503dd2
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class Notice::Write::ClientService < ApplicationService
req.request :url_encoded
req.headers['Content-Type'] = 'application/json'
req.adapter Faraday.default_adapter
req.options.timeout = 100 # open/read timeout in seconds
req.options.open_timeout = 10 # connection open timeout in seconds
end
end