🎨 异步刷新资源文件缓存

This commit is contained in:
Liang Ding 2022-08-31 00:47:50 +08:00
parent 143bf0f65a
commit 056f1ed579
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 4 additions and 2 deletions

View file

@ -37,6 +37,8 @@ var Assets = map[string]*Asset{}
var assetsLock = sync.Mutex{}
func LoadAssets() {
defer logging.Recover()
start := time.Now()
assetsLock.Lock()
defer assetsLock.Unlock()