fix grpc proto wrapper

This commit is contained in:
Asim Aslam 2019-06-27 13:08:06 +01:00
parent 43297f731c
commit 9630e153a5
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ type grpcClient struct {
func init() {
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
encoding.RegisterCodec(wrapCodec{protoCodec{}})
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
}

View File

@ -56,8 +56,8 @@ type grpcServer struct {
}
func init() {
encoding.RegisterCodec(wrapCodec{protoCodec{}})
encoding.RegisterCodec(wrapCodec{jsonCodec{}})
encoding.RegisterCodec(wrapCodec{protoCodec{}})
encoding.RegisterCodec(wrapCodec{bytesCodec{}})
}