strip use of cmd
This commit is contained in:
parent
8a3538eb77
commit
eaae419939
3
grpc.go
3
grpc.go
@ -14,7 +14,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/micro/go-micro/broker"
|
"github.com/micro/go-micro/broker"
|
||||||
"github.com/micro/go-micro/cmd"
|
|
||||||
"github.com/micro/go-micro/codec"
|
"github.com/micro/go-micro/codec"
|
||||||
"github.com/micro/go-micro/errors"
|
"github.com/micro/go-micro/errors"
|
||||||
meta "github.com/micro/go-micro/metadata"
|
meta "github.com/micro/go-micro/metadata"
|
||||||
@ -59,8 +58,6 @@ type grpcServer struct {
|
|||||||
func init() {
|
func init() {
|
||||||
encoding.RegisterCodec(jsonCodec{})
|
encoding.RegisterCodec(jsonCodec{})
|
||||||
encoding.RegisterCodec(bytesCodec{})
|
encoding.RegisterCodec(bytesCodec{})
|
||||||
|
|
||||||
cmd.DefaultServers["grpc"] = NewServer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func newGRPCServer(opts ...server.Option) server.Server {
|
func newGRPCServer(opts ...server.Option) server.Server {
|
||||||
|
Loading…
Reference in New Issue
Block a user