mirror of
https://github.com/safing/portbase
synced 2025-09-02 10:40:39 +00:00
Merge pull request #21 from safing/fix/clean-updater
Remove updater hooking feature
This commit is contained in:
commit
cf89e8064d
1 changed files with 0 additions and 6 deletions
|
@ -5,8 +5,6 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/tevino/abool"
|
|
||||||
|
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
"github.com/safing/portbase/utils"
|
"github.com/safing/portbase/utils"
|
||||||
)
|
)
|
||||||
|
@ -30,9 +28,6 @@ type ResourceRegistry struct {
|
||||||
Beta bool
|
Beta bool
|
||||||
DevMode bool
|
DevMode bool
|
||||||
Online bool
|
Online bool
|
||||||
|
|
||||||
notifyHooks []func()
|
|
||||||
notifyHooksEnabled *abool.AtomicBool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize initializes a raw registry struct and makes it ready for usage.
|
// Initialize initializes a raw registry struct and makes it ready for usage.
|
||||||
|
@ -52,7 +47,6 @@ func (reg *ResourceRegistry) Initialize(storageDir *utils.DirStructure) error {
|
||||||
reg.storageDir = storageDir
|
reg.storageDir = storageDir
|
||||||
reg.tmpDir = storageDir.ChildDir("tmp", 0700)
|
reg.tmpDir = storageDir.ChildDir("tmp", 0700)
|
||||||
reg.resources = make(map[string]*Resource)
|
reg.resources = make(map[string]*Resource)
|
||||||
reg.notifyHooksEnabled = abool.NewBool(true)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue