mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✏️ fix far connect in updater
This commit is contained in:
parent
b6dadc142b
commit
4bebf79266
@ -8,7 +8,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
reg "github.com/fumiama/go-registry"
|
reg "github.com/fumiama/go-registry"
|
||||||
@ -33,7 +32,7 @@ func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte,
|
|||||||
u := dataurl + path
|
u := dataurl + path
|
||||||
lzmu.Lock()
|
lzmu.Lock()
|
||||||
logrus.Infoln("[file]检查懒加载文件:", path)
|
logrus.Infoln("[file]检查懒加载文件:", path)
|
||||||
err := registry.ConnectIn(time.Second * 4)
|
err := registry.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorln("[file]无法连接到md5验证服务器,请自行确保下载文件的正确性:", err)
|
logrus.Errorln("[file]无法连接到md5验证服务器,请自行确保下载文件的正确性:", err)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user