Don't add to defaults in func init, just add them to cmd
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/cmd"
|
||||
"github.com/micro/go-micro/transport"
|
||||
)
|
||||
|
||||
func init() {
|
||||
cmd.DefaultTransports["http"] = NewTransport
|
||||
}
|
||||
|
||||
func NewTransport(opts ...transport.Option) transport.Transport {
|
||||
return transport.NewTransport(opts...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user