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