From 392db01d40de8b6977d83422793a9bad2ccb0b01 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 29 Jan 2021 14:45:37 +0300 Subject: [PATCH] update for latest micro Signed-off-by: Vasiliy Tolstov --- go.mod | 2 +- go.sum | 4 ++-- s3.go | 4 ++++ s3_test.go | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 03d43fb..bc746c1 100644 --- a/go.mod +++ b/go.mod @@ -5,5 +5,5 @@ go 1.15 require ( github.com/gabriel-vasile/mimetype v1.1.2 github.com/minio/minio-go/v7 v7.0.7 - github.com/unistack-org/micro/v3 v3.1.8 + github.com/unistack-org/micro/v3 v3.2.0 ) diff --git a/go.sum b/go.sum index 23736ca..37d843e 100644 --- a/go.sum +++ b/go.sum @@ -90,8 +90,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/unistack-org/micro/v3 v3.1.8 h1:ma9tBX7h0QyByDZ+vrY3+kqJoy/Ro9vMx2iTLjrDaNI= -github.com/unistack-org/micro/v3 v3.1.8/go.mod h1:J8XxJj4Pqa3Ee0a4biRRtut7UwTlfBq8QRe+s4PKGS0= +github.com/unistack-org/micro/v3 v3.2.0 h1:1e6cFMHzHV+RjwwajwYJARpxQiEpnTCvV/2L9xeW4zc= +github.com/unistack-org/micro/v3 v3.2.0/go.mod h1:J8XxJj4Pqa3Ee0a4biRRtut7UwTlfBq8QRe+s4PKGS0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= diff --git a/s3.go b/s3.go index bc7030f..018e1ca 100644 --- a/s3.go +++ b/s3.go @@ -302,3 +302,7 @@ func (s *s3Store) List(ctx context.Context, opts ...store.ListOption) ([]string, func (s *s3Store) String() string { return "s3" } + +func (s *s3Store) Name() string { + return s.opts.Name +} diff --git a/s3_test.go b/s3_test.go index d639102..3ae5863 100644 --- a/s3_test.go +++ b/s3_test.go @@ -44,7 +44,7 @@ func TestStore(t *testing.T) { } }() - svc := micro.NewService(micro.Store(s)) + svc := micro.NewService(micro.Stores(s)) if err := svc.Init(); err != nil { t.Fatalf("service init failed: %v", err) }