fix(config): fix default values not applied

This commit is contained in:
yusing
2025-12-16 11:55:47 +08:00
parent db0cbc6577
commit ff934a4bb2
5 changed files with 26 additions and 4 deletions

View File

@@ -33,7 +33,10 @@ type State interface {
FlushTmpLog()
}
// could be nil
// could be nil before first call on Load
var ActiveState synk.Value[State]
// nil-safe while loading config, nil otherwise
var WorkingState synk.Value[State]
var ErrConfigChanged = errors.New("config changed")