refactor: server.WithPprof 名称修改为 server.WithPProf
This commit is contained in:
parent
8f4a712b4d
commit
50ab92ef67
|
@ -172,8 +172,8 @@ func WithMessageBufferSize(size int) Option {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithPprof 通过性能分析工具PProf创建服务器
|
// WithPProf 通过性能分析工具PProf创建服务器
|
||||||
func WithPprof(pattern ...string) Option {
|
func WithPProf(pattern ...string) Option {
|
||||||
return func(srv *Server) {
|
return func(srv *Server) {
|
||||||
if srv.network != NetworkHttp {
|
if srv.network != NetworkHttp {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue