Skip to content

Commit 4eb7ba3

Browse files
author
chenjie199234
committed
update
1 parent cc5a59b commit 4eb7ba3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

codegen/tml/config/template_config.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ func initlocalapp(notice func(*AppConfig)) {
192192
continue
193193
}
194194
validateAppConfig(c)
195-
log.Info(nil, "[config.local.app] update success", log.Any("config", c))
195+
AC = c
196+
log.Info(nil, "[config.local.app] update success", log.Any("config", AC))
196197
if notice != nil {
197-
notice(c)
198+
notice(AC)
198199
}
199-
AC = c
200200
case err, ok := <-watcher.Errors:
201201
if !ok {
202202
return
@@ -219,11 +219,11 @@ func initremoteapp(notice func(*AppConfig), wait chan *struct{}) (stopwatch func
219219
return
220220
}
221221
validateAppConfig(c)
222-
log.Info(nil, "[config.remote.app] update success", log.Any("config", c))
222+
AC = c
223+
log.Info(nil, "[config.remote.app] update success", log.Any("config", AC))
223224
if notice != nil {
224-
notice(c)
225+
notice(AC)
225226
}
226-
AC = c
227227
select {
228228
case wait <- nil:
229229
default:

0 commit comments

Comments
 (0)