From 4bebf79266c38a76a183c4d6ad20da482cd80647 Mon Sep 17 00:00:00 2001 From: fumiama Date: Wed, 15 Dec 2021 13:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20fix=20far=20connect=20i?= =?UTF-8?q?n=20updater?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/file/updater.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/file/updater.go b/utils/file/updater.go index 62c5fde2..a26c60c5 100644 --- a/utils/file/updater.go +++ b/utils/file/updater.go @@ -8,7 +8,6 @@ import ( "net/http" "os" "sync" - "time" "unsafe" reg "github.com/fumiama/go-registry" @@ -33,7 +32,7 @@ func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte, u := dataurl + path lzmu.Lock() logrus.Infoln("[file]检查懒加载文件:", path) - err := registry.ConnectIn(time.Second * 4) + err := registry.Connect() if err != nil { logrus.Errorln("[file]无法连接到md5验证服务器,请自行确保下载文件的正确性:", err) } else {