[#1278] acl: Return netmap.Source interface

Application can provide cached netmap source in this case.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-29 15:49:39 +03:00 committed by Alex Vanin
parent cf119e4ca9
commit 7ed84d1755
3 changed files with 7 additions and 7 deletions

View file

@ -358,7 +358,7 @@ func initObjectService(c *cfg) {
aclSvc := v2.New(
v2.WithLogger(c.log),
v2.WithIRFetcher(irFetcher),
v2.WithNetmapClient(c.cfgNetmap.wrapper),
v2.WithNetmapSource(c.cfgNetmap.wrapper),
v2.WithContainerSource(
c.cfgObject.cnrSource,
),