cleanup debug and transport (#1920)
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/micro/go-micro/v3/registry/mdns"
|
||||
"github.com/micro/go-micro/v3/transport"
|
||||
thttp "github.com/micro/go-micro/v3/transport/http"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
@@ -72,7 +73,7 @@ func newOptions(opt ...Option) Options {
|
||||
}
|
||||
|
||||
if opts.Transport == nil {
|
||||
opts.Transport = transport.DefaultTransport
|
||||
opts.Transport = thttp.NewTransport()
|
||||
}
|
||||
|
||||
if opts.RegisterCheck == nil {
|
||||
@@ -228,7 +229,7 @@ func TLSConfig(t *tls.Config) Option {
|
||||
// set the default transport if one is not
|
||||
// already set. Required for Init call below.
|
||||
if o.Transport == nil {
|
||||
o.Transport = transport.DefaultTransport
|
||||
o.Transport = thttp.NewTransport()
|
||||
}
|
||||
|
||||
// set the transport tls
|
||||
|
||||
Reference in New Issue
Block a user