mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 23:22:41 +08:00
feat: fix bool
This commit is contained in:
@@ -155,7 +155,10 @@ func (e *Enforcer) SetWatcher(watcher persist.Watcher) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *Enforcer) SetUpdatableWatcher(watcher persist.UpdatableWatcher) {
|
func (e *Enforcer) SetUpdatableWatcher(watcher persist.UpdatableWatcher) {
|
||||||
e.updatableWatcher = watcher
|
if watcher != nil {
|
||||||
|
e.updatableWatcher = watcher
|
||||||
|
e.notifyUpdatableWatcher = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Enforcer) GetUpdatableWatcher() persist.UpdatableWatcher {
|
func (e *Enforcer) GetUpdatableWatcher() persist.UpdatableWatcher {
|
||||||
|
Reference in New Issue
Block a user