fix grpc proto wrapper
This commit is contained in:
parent
43297f731c
commit
9630e153a5
@ -33,7 +33,7 @@ type grpcClient struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
|
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
|
||||||
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
|
encoding.RegisterCodec(wrapCodec{protoCodec{}})
|
||||||
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
|
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +67,6 @@ func DefaultOptions() Options {
|
|||||||
Address: DefaultAddress,
|
Address: DefaultAddress,
|
||||||
Registry: registry.DefaultRegistry,
|
Registry: registry.DefaultRegistry,
|
||||||
Table: NewTable(),
|
Table: NewTable(),
|
||||||
Network: "local",
|
Network: "local",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,8 +56,8 @@ type grpcServer struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
encoding.RegisterCodec(wrapCodec{protoCodec{}})
|
|
||||||
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
|
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
|
||||||
|
encoding.RegisterCodec(wrapCodec{protoCodec{}})
|
||||||
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
|
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user