From 34a9fb2dc8defc33bb5d4670c18378738e66b93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 17 Feb 2021 22:21:03 +0000 Subject: [PATCH] remove unneeded getTranstport MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- ocis-pkg/service/http/service.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ocis-pkg/service/http/service.go b/ocis-pkg/service/http/service.go index b10c66667a0..62c663d273c 100644 --- a/ocis-pkg/service/http/service.go +++ b/ocis-pkg/service/http/service.go @@ -8,10 +8,8 @@ import ( "github.com/owncloud/ocis/ocis-pkg/registry" "github.com/asim/go-micro/plugins/server/http/v3" - "github.com/asim/go-micro/plugins/transport/tcp/v3" "github.com/asim/go-micro/v3" "github.com/asim/go-micro/v3/server" - mt "github.com/asim/go-micro/v3/transport" ) // Service simply wraps the go-micro web service. @@ -42,14 +40,6 @@ func NewService(opts ...Option) Service { return Service{micro.NewService(wopts...)} } -func getTransport(tlscfg *tls.Config) mt.Transport { - if tlscfg == nil { - // return a default http transport - return mt.NewHTTPTransport() - } - return tcp.NewTransport(mt.Secure(true), mt.TLSConfig(tlscfg)) -} - func transport(secure *tls.Config) string { if secure != nil { return "https"