Fix: failed to initialize update checker http client
This commit is contained in:
parent
adaa3290dd
commit
24b5313ccf
3 changed files with 2 additions and 3 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 59890e6b22d69befa8b742a64967b6bab1bb4a3d
|
||||
Subproject commit fe6297c952319762a8f27f6a8c121b513d3859c0
|
|
@ -34,7 +34,7 @@ type GitHubRelease struct {
|
|||
|
||||
// CheckUpdate 检查更新
|
||||
func CheckUpdate() {
|
||||
client := request.HTTPClient{}
|
||||
client := request.NewClient()
|
||||
res, err := client.Request("GET", "https://api.github.com/repos/cloudreve/cloudreve/releases", nil).GetResponse()
|
||||
if err != nil {
|
||||
util.Log().Warning("更新检查失败, %s", err)
|
||||
|
|
|
@ -51,7 +51,6 @@ func NewMonitor(task *model.Download) {
|
|||
// Loop 开启监控循环
|
||||
func (monitor *Monitor) Loop() {
|
||||
defer mq.GlobalMQ.Unsubscribe(monitor.Task.GID, monitor.notifier)
|
||||
fmt.Println(cluster.Default)
|
||||
|
||||
// 首次循环立即更新
|
||||
interval := time.Duration(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue