Skip to content

Commit

Permalink
消费改由框架启动后执行
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 19, 2024
1 parent 79c91b9 commit a209766
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func AddInitCallback(name string, fn func()) {
if !isInit {
callbackFnList = append(callbackFnList, callbackFn{name: name, f: fn})
} else { // 初始化完后,则立即执行
sw := stopwatch.StartNew()
fn()
flog.Println("Run :" + name + ",Use:" + sw.GetMillisecondsText())
}
}

0 comments on commit a209766

Please sign in to comment.