forked from TrueCloudLab/frostfs-node
[#176] localstore/shard: Change signature of options
Make WithBlobStorOptions/WithMetaBaseOptions functions to accept variadic parameter. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
73494c4bbc
commit
f7116f27ec
1 changed files with 2 additions and 2 deletions
|
@ -62,14 +62,14 @@ func WithID(id *ID) Option {
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithBlobStorOptions returns option to set internal BlobStor options.
|
// WithBlobStorOptions returns option to set internal BlobStor options.
|
||||||
func WithBlobStorOptions(opts []blobstor.Option) Option {
|
func WithBlobStorOptions(opts ...blobstor.Option) Option {
|
||||||
return func(c *cfg) {
|
return func(c *cfg) {
|
||||||
c.blobOpts = opts
|
c.blobOpts = opts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithMetaBaseOptions returns option to set internal metabase options.
|
// WithMetaBaseOptions returns option to set internal metabase options.
|
||||||
func WithMetaBaseOptions(opts []meta.Option) Option {
|
func WithMetaBaseOptions(opts ...meta.Option) Option {
|
||||||
return func(c *cfg) {
|
return func(c *cfg) {
|
||||||
c.metaOpts = opts
|
c.metaOpts = opts
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue