Skip to content

Commit

Permalink
remove unneeded getTranstport
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Feb 18, 2021
1 parent 63416c3 commit 34a9fb2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ocis-pkg/service/http/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 34a9fb2

Please sign in to comment.