frostfs-node/cmd/frostfs-ir/pprof.go
Evgenii Stratonikov f989bc52be [#39] ir: Do not store config keys in httpComponent
Pprof will have specific options, it seems wrong to have them in a
generic struct.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-05-12 17:49:46 +03:00

12 lines
217 B
Go

package main
import (
httputil "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/http"
)
func newPprofComponent() *httpComponent {
return &httpComponent{
name: "pprof",
handler: httputil.Handler(),
}
}