Browse Source

Revert "FIX 增加gitea接口的响应时间(timeout设置为100s)"

This reverts commit 0e9699885d.
tags/v4.0.0
jasder 4 years ago
parent
commit
84ad7130d3
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      app/services/gitea/client_service.rb

+ 0
- 2
app/services/gitea/client_service.rb View File

@@ -82,8 +82,6 @@ class Gitea::ClientService < ApplicationService
req.headers['Content-Type'] = 'application/json'
req.response :logger # 显示日志
req.adapter Faraday.default_adapter
req.options.timeout = 120 # open/read timeout in seconds
1 req.options.open_timeout = 10 # connection open timeout in seconds
if token.blank?
req.basic_auth(username, secret)
else


Loading…
Cancel
Save