[#219] morph: Resolve containedctx linter

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-05 16:58:32 +03:00
parent 56282edf02
commit e815b19101
9 changed files with 43 additions and 54 deletions

View file

@ -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)