From 459d295788bcd34f8c4489676061cfa68698c174 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 16 Nov 2020 17:39:06 +0300 Subject: [PATCH] [#199] sdk/container: Correct linter's remarks Signed-off-by: Leonard Lyubich --- pkg/container/container.go | 3 ++- pkg/container/opts.go | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/container/container.go b/pkg/container/container.go index 44efd9ef..1638ca55 100644 --- a/pkg/container/container.go +++ b/pkg/container/container.go @@ -15,6 +15,7 @@ type Container struct { func New(opts ...NewOption) *Container { cnrOptions := defaultContainerOptions() + for i := range opts { opts[i].apply(&cnrOptions) } @@ -36,7 +37,7 @@ func New(opts ...NewOption) *Container { return cnr } -func (c Container) ToV2() *container.Container { +func (c *Container) ToV2() *container.Container { return &c.v2 } diff --git a/pkg/container/opts.go b/pkg/container/opts.go index 424891d6..8c15ed1f 100644 --- a/pkg/container/opts.go +++ b/pkg/container/opts.go @@ -12,11 +12,6 @@ type ( apply(*containerOptions) } - attribute struct { - key string - value string - } - containerOptions struct { acl uint32 policy *netmap.PlacementPolicy