Skip to content

Commit cc5a59b

Browse files
author
chenjie199234
committed
update
1 parent ee8d4dc commit cc5a59b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegen/tml/dao/template_dao.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func NewApi() error {
9393
return nil
9494
}
9595
96-
func UpdateAPI(ac *config.AppConfig) {
96+
func UpdateAppConfig(ac *config.AppConfig) {
9797
9898
}`
9999

codegen/tml/mainfile/template_main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
//this is a notice callback every time appconfig changes
3535
//this function works in sync mode
3636
//don't write block logic inside this
37-
dao.UpdateAPI(ac)
37+
dao.UpdateAppConfig(ac)
3838
xcrpc.UpdateHandlerTimeout(ac.HandlerTimeout)
3939
xgrpc.UpdateHandlerTimeout(ac.HandlerTimeout)
4040
xweb.UpdateHandlerTimeout(ac.HandlerTimeout)

0 commit comments

Comments
 (0)