Skip to content

Commit

Permalink
🎨 公测云端同步数据仓库 #5337
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jul 4, 2022
1 parent 67ffbc9 commit ac116ed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion kernel/model/assets_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
var assetsWatcher *fsnotify.Watcher

func WatchAssets() {
if "android" == util.Container {
if "android" == util.Container || "ios" == util.Container {
return
}

Expand Down
4 changes: 0 additions & 4 deletions kernel/model/assets_watcher_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ import (
var assetsWatcher *watcher.Watcher

func WatchAssets() {
if "iOS" == util.Container {
return
}

go func() {
watchAssets()
}()
Expand Down
3 changes: 0 additions & 3 deletions kernel/model/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,6 @@ func syncRepo(boot, exit, byHand bool) {
return
}

CloseWatchAssets()
defer WatchAssets()

start := time.Now()
cloudInfo := &dejavu.CloudInfo{
Dir: "main",
Expand Down

0 comments on commit ac116ed

Please sign in to comment.