e8665f6cef
Do not init caches for eACL, containers and netmap if `disable_cache` config options is `true`, use direct RPC calls instead. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
17 lines
247 B
Go
17 lines
247 B
Go
package eacl
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
|
)
|
|
|
|
func WithLogger(v *logger.Logger) Option {
|
|
return func(c *cfg) {
|
|
c.logger = v
|
|
}
|
|
}
|
|
|
|
func WithEACLSource(v Source) Option {
|
|
return func(c *cfg) {
|
|
c.storage = v
|
|
}
|
|
}
|