forked from TrueCloudLab/frostfs-node
[#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>
This commit is contained in:
parent
61776033c2
commit
f989bc52be
3 changed files with 22 additions and 37 deletions
|
@ -4,18 +4,9 @@ import (
|
|||
httputil "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/http"
|
||||
)
|
||||
|
||||
const (
|
||||
pprofEnabledKey = "pprof.enabled"
|
||||
pprofAddressKey = "pprof.address"
|
||||
pprofShutdownTimeoutKey = "pprof.shutdown_timeout"
|
||||
)
|
||||
|
||||
func newPprofComponent() *httpComponent {
|
||||
return &httpComponent{
|
||||
name: "pprof",
|
||||
enabledKey: pprofEnabledKey,
|
||||
addressKey: pprofAddressKey,
|
||||
shutdownTimeoutKey: pprofShutdownTimeoutKey,
|
||||
handler: httputil.Handler(),
|
||||
name: "pprof",
|
||||
handler: httputil.Handler(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue