handler/pprof: clean prefix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -9,10 +9,6 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| func NewHandler(prefixPath string, initFuncs ...func()) http.HandlerFunc { | func NewHandler(prefixPath string, initFuncs ...func()) http.HandlerFunc { | ||||||
| 	if prefixPath == "" { |  | ||||||
| 		prefixPath = "/pprof" |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	for _, fn := range initFuncs { | 	for _, fn := range initFuncs { | ||||||
| 		fn() | 		fn() | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user