修复拼写错误

This commit is contained in:
白茶清欢 2025-02-25 17:22:14 +08:00
parent 2c201ae226
commit 3432087fbd

View File

@ -148,16 +148,15 @@ func WithEnableCors() SetServerOptionFunc {
}
}
// WithLoggerCdg ...
// WithLoggerCfg ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 15:25 2025/2/22
func WithLoggerCdg(loggerCfg *middleware.AccessConfig) SetServerOptionFunc {
func WithLoggerCfg(loggerCfg *middleware.AccessConfig) SetServerOptionFunc {
return func(so *serverOption) {
if nil == loggerCfg || nil == loggerCfg.Logger {
return
if nil != loggerCfg || nil != loggerCfg.Logger {
so.loggerCfg = loggerCfg
}
so.loggerCfg = loggerCfg
}
}