[#176] localstore/shard: Change signature of options

Make WithBlobStorOptions/WithMetaBaseOptions functions to accept
variadic parameter.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2020-11-18 14:42:06 +03:00 committed by Alex Vanin
parent 73494c4bbc
commit f7116f27ec
1 changed files with 2 additions and 2 deletions

View File

@ -62,14 +62,14 @@ func WithID(id *ID) Option {
}
// WithBlobStorOptions returns option to set internal BlobStor options.
func WithBlobStorOptions(opts []blobstor.Option) Option {
func WithBlobStorOptions(opts ...blobstor.Option) Option {
return func(c *cfg) {
c.blobOpts = opts
}
}
// WithMetaBaseOptions returns option to set internal metabase options.
func WithMetaBaseOptions(opts []meta.Option) Option {
func WithMetaBaseOptions(opts ...meta.Option) Option {
return func(c *cfg) {
c.metaOpts = opts
}