From 84ad7130d36f6ffb8b80bb542ac3c7346a81aa6d Mon Sep 17 00:00:00 2001 From: jasder Date: Mon, 1 Nov 2021 11:04:37 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"FIX=20=E5=A2=9E=E5=8A=A0gitea?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=93=8D=E5=BA=94=E6=97=B6=E9=97=B4?= =?UTF-8?q?(timeout=E8=AE=BE=E7=BD=AE=E4=B8=BA100s)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0e9699885db6fcdca4d7425b190da26c694d1d3d. --- app/services/gitea/client_service.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/services/gitea/client_service.rb b/app/services/gitea/client_service.rb index 1a8f263c..868a704c 100644 --- a/app/services/gitea/client_service.rb +++ b/app/services/gitea/client_service.rb @@ -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