author | Alberto Bertogli
<albertito@blitiri.com.ar> 2015-10-18 10:27:59 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2015-10-18 10:27:59 UTC |
parent | 52049c3f6f42a708305f56fdd45f5f68230ca98e |
proto/dnss.pb.go | +2 | -2 |
diff --git a/proto/dnss.pb.go b/proto/dnss.pb.go index e1c1f93..b9ce65a 100644 --- a/proto/dnss.pb.go +++ b/proto/dnss.pb.go @@ -74,9 +74,9 @@ func RegisterDNSServiceServer(s *grpc.Server, srv DNSServiceServer) { s.RegisterService(&_DNSService_serviceDesc, srv) } -func _DNSService_Query_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _DNSService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(RawMsg) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(DNSServiceServer).Query(ctx, in)