forked from TrueCloudLab/frostfs-node
[#219] morph: Resolve containedctx linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
56282edf02
commit
e815b19101
9 changed files with 43 additions and 54 deletions
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
|
@ -135,7 +136,7 @@ func (c *cfg) addressNum() int {
|
|||
return 0
|
||||
}
|
||||
|
||||
func initNetmapService(c *cfg) {
|
||||
func initNetmapService(ctx context.Context, c *cfg) {
|
||||
network.WriteToNodeInfo(c.localAddr, &c.cfgNodeInfo.localInfo)
|
||||
c.cfgNodeInfo.localInfo.SetPublicKey(c.key.PublicKey().Bytes())
|
||||
parseAttributes(c)
|
||||
|
@ -144,7 +145,7 @@ func initNetmapService(c *cfg) {
|
|||
readSubnetCfg(c)
|
||||
|
||||
if c.cfgMorph.client == nil {
|
||||
initMorphComponents(c)
|
||||
initMorphComponents(ctx, c)
|
||||
}
|
||||
|
||||
initNetmapState(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue