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
|
@ -38,8 +38,7 @@ func initReputationService(c *cfg) {
|
|||
|
||||
localKey := c.key.PublicKey().Bytes()
|
||||
|
||||
// consider sharing this between application components
|
||||
nmSrc := newCachedNetmapStorage(c.cfgNetmap.state, c.cfgNetmap.wrapper)
|
||||
nmSrc := c.netMapSource
|
||||
|
||||
// storing calculated trusts as a daughter
|
||||
c.cfgReputation.localTrustStorage = truststorage.New(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue