Skip to content

Commit

Permalink
docs: optimize performance and enhance testing coverage
Browse files Browse the repository at this point in the history
- Remove `pprof.Register(router)` from README.md and _example/custom/server.go

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jun 16, 2023
1 parent 344806f commit 0e5e47b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion _example/custom/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e5e47b

Please sign in to comment.