forked from TrueCloudLab/frostfs-node
[#873] node: Start metrics and pprof as soon as possible
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
b1eab1de54
commit
825f65f79e
2 changed files with 9 additions and 21 deletions
|
@ -30,15 +30,6 @@ func startWorker(ctx context.Context, c *cfg, wrk worker) {
|
|||
}(wrk)
|
||||
}
|
||||
|
||||
func delWorker(c *cfg, name string) {
|
||||
for i, worker := range c.workers {
|
||||
if worker.name == name {
|
||||
c.workers = append(c.workers[:i], c.workers[i+1:]...)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func getWorker(c *cfg, name string) *worker {
|
||||
for _, wrk := range c.workers {
|
||||
if wrk.name == name {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue