From 73b2ff58b75b8ab9c60d9da1f9aa17515686dd83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Mon, 19 Jul 2021 15:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Upgrade/UpgradeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastGithub.Upgrade/UpgradeService.cs b/FastGithub.Upgrade/UpgradeService.cs index 5e1382e..df02fed 100644 --- a/FastGithub.Upgrade/UpgradeService.cs +++ b/FastGithub.Upgrade/UpgradeService.cs @@ -59,7 +59,7 @@ namespace FastGithub.Upgrade /// public async Task GetLastedReleaseAsync(CancellationToken cancellationToken) { - using var httpClient = new HttpClient(); + using var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(5d) }; var releases = await httpClient.GetFromJsonAsync(ReleasesUri, cancellationToken); return releases?.FirstOrDefault(); }