[#1278] neofs-node: Cache IRFetcher

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-29 16:25:03 +03:00 committed by Alex Vanin
parent be6ae3c066
commit e4a8ed589b
2 changed files with 37 additions and 1 deletions

View file

@ -357,7 +357,7 @@ func initObjectService(c *cfg) {
aclSvc := v2.New(
v2.WithLogger(c.log),
v2.WithIRFetcher(irFetcher),
v2.WithIRFetcher(newCachedIRFetcher(irFetcher)),
v2.WithNetmapSource(c.netMapSource),
v2.WithContainerSource(
c.cfgObject.cnrSource,