修复拼写错误
This commit is contained in:
parent
2c201ae226
commit
3432087fbd
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user