From 0e5e47bddf6a177e422ed2d6277bf1dfbf626eae Mon Sep 17 00:00:00 2001 From: appleboy Date: Fri, 16 Jun 2023 11:22:32 +0800 Subject: [PATCH] docs: optimize performance and enhance testing coverage - Remove `pprof.Register(router)` from README.md and _example/custom/server.go Signed-off-by: appleboy --- README.md | 1 - _example/custom/server.go | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index dbd6c95..fdbf782 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ import ( func main() { router := gin.Default() - pprof.Register(router) adminGroup := router.Group("/admin", func(c *gin.Context) { if c.Request.Header.Get("Authorization") != "foobar" { c.AbortWithStatus(http.StatusForbidden) diff --git a/_example/custom/server.go b/_example/custom/server.go index e96acea..be2be2a 100644 --- a/_example/custom/server.go +++ b/_example/custom/server.go @@ -9,7 +9,6 @@ import ( func main() { router := gin.Default() - pprof.Register(router) adminGroup := router.Group("/admin", func(c *gin.Context) { if c.Request.Header.Get("Authorization") != "foobar" { c.AbortWithStatus(http.StatusForbidden)