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 <jfd@butonic.de>
  • Loading branch information
butonic committed Feb 17, 2021
1 parent 3452bf1 commit 252162e
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 252162e

Please sign in to comment.