From 50ab92ef6752bf6a2ea47778680a7d7ab45e7d9c Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Mon, 10 Jul 2023 10:00:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20server.WithPprof=20=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=BF=AE=E6=94=B9=E4=B8=BA=20server.WithPProf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/options.go b/server/options.go index 14d2380..69e8df5 100644 --- a/server/options.go +++ b/server/options.go @@ -172,8 +172,8 @@ func WithMessageBufferSize(size int) Option { } } -// WithPprof 通过性能分析工具PProf创建服务器 -func WithPprof(pattern ...string) Option { +// WithPProf 通过性能分析工具PProf创建服务器 +func WithPProf(pattern ...string) Option { return func(srv *Server) { if srv.network != NetworkHttp { return