forked from TrueCloudLab/frostfs-node
[#1278] neofs-node: Use global cached netmap source in services
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
7ed84d1755
commit
be6ae3c066
6 changed files with 13 additions and 14 deletions
|
@ -31,7 +31,7 @@ func initControlService(c *cfg) {
|
|||
controlSvc.WithKey(&c.key.PrivateKey),
|
||||
controlSvc.WithAuthorizedKeys(rawPubs),
|
||||
controlSvc.WithHealthChecker(c),
|
||||
controlSvc.WithNetMapSource(c.cfgNetmap.wrapper),
|
||||
controlSvc.WithNetMapSource(c.netMapSource),
|
||||
controlSvc.WithNodeState(c),
|
||||
controlSvc.WithDeletedObjectHandler(func(addrList []*addressSDK.Address) error {
|
||||
prm := new(engine.DeletePrm).WithAddresses(addrList...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue