Skip to content

Commit 46c56f4

Browse files
authored
chore: disable debug/pprof interface (#2339)
Co-authored-by: 阿杰鲁 <[email protected]>
1 parent bbecd55 commit 46c56f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/internal/route.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"path/filepath"
2222

23-
"github.com/gin-contrib/pprof"
23+
// "github.com/gin-contrib/pprof"
2424
"github.com/gin-contrib/static"
2525
"github.com/gin-gonic/gin"
2626

@@ -93,7 +93,7 @@ func SetUpRouter() *gin.Engine {
9393
h.ApplyRoute(r)
9494
}
9595

96-
pprof.Register(r)
96+
// pprof.Register(r)
9797

9898
return r
9999
}

0 commit comments

Comments
 (0)