Skip to content

Commit 0e5e47b

Browse files
committed
docs: optimize performance and enhance testing coverage
- Remove `pprof.Register(router)` from README.md and _example/custom/server.go Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 344806f commit 0e5e47b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ import (
6868

6969
func main() {
7070
router := gin.Default()
71-
pprof.Register(router)
7271
adminGroup := router.Group("/admin", func(c *gin.Context) {
7372
if c.Request.Header.Get("Authorization") != "foobar" {
7473
c.AbortWithStatus(http.StatusForbidden)

_example/custom/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
func main() {
1111
router := gin.Default()
12-
pprof.Register(router)
1312
adminGroup := router.Group("/admin", func(c *gin.Context) {
1413
if c.Request.Header.Get("Authorization") != "foobar" {
1514
c.AbortWithStatus(http.StatusForbidden)

0 commit comments

Comments
 (0)