mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
chore: rebuild sync.Once visit code
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
mihomoOnce "github.com/metacubex/mihomo/common/once"
|
||||
mihomoHttp "github.com/metacubex/mihomo/component/http"
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
"github.com/metacubex/mihomo/log"
|
||||
@@ -96,5 +97,5 @@ func DownloadMMDB(path string) (err error) {
|
||||
}
|
||||
|
||||
func Reload() {
|
||||
once = sync.Once{}
|
||||
mihomoOnce.Reset(&once)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user