fix: 修复函数名称歧义问题
This commit is contained in:
@ -36,8 +36,8 @@ type serverOption struct {
|
||||
initContextData gin.HandlerFunc // 初始化一些请求数据
|
||||
}
|
||||
|
||||
// WithEnableInitRequest 启用pprof
|
||||
func WithEnableInitRequest(disable bool) SetServerOptionFunc {
|
||||
// WithDisableInitRequest 禁用自从初始化请求
|
||||
func WithDisableInitRequest(disable bool) SetServerOptionFunc {
|
||||
return func(so *serverOption) {
|
||||
so.disableInitRequest = disable
|
||||
}
|
||||
|
Reference in New Issue
Block a user