From f7116f27ece0e597c57819dc0152fe7d71ac7819 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 18 Nov 2020 14:42:06 +0300 Subject: [PATCH] [#176] localstore/shard: Change signature of options Make WithBlobStorOptions/WithMetaBaseOptions functions to accept variadic parameter. Signed-off-by: Leonard Lyubich --- pkg/local_object_storage/shard/shard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/local_object_storage/shard/shard.go b/pkg/local_object_storage/shard/shard.go index 75479383..3601e2f5 100644 --- a/pkg/local_object_storage/shard/shard.go +++ b/pkg/local_object_storage/shard/shard.go @@ -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 }