From b8803409b04a531a4c99a767077810c85308eb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 17 Aug 2025 21:36:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=AD=A7=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/option.go b/router/option.go index ebb42df..8975ade 100644 --- a/router/option.go +++ b/router/option.go @@ -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 }