优化结构
This commit is contained in:
@@ -88,7 +88,7 @@ func (d *Data) watchConfig() func() {
|
||||
next.Admin.Email = current.Email
|
||||
}
|
||||
next.Admin.ConfigPath = absolute
|
||||
d.runtime.Replace(next.Data, next.Admin)
|
||||
d.runtime.Replace(next)
|
||||
logger.Info("config file changed", "mod", "system", "path", absolute)
|
||||
case watchErr, ok := <-watchErrors:
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user