Compare commits

...

1 Commits

Author SHA1 Message Date
3e30960694 handler/pprof: clean prefix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-02-09 00:16:34 +03:00

View File

@@ -9,10 +9,6 @@ import (
)
func NewHandler(prefixPath string, initFuncs ...func()) http.HandlerFunc {
if prefixPath == "" {
prefixPath = "/pprof"
}
for _, fn := range initFuncs {
fn()
}