git » dnss » commit d46af66

Regenerate proto for grpc changes

author Alberto Bertogli
2015-10-18 10:27:59 UTC
committer Alberto Bertogli
2015-10-18 10:27:59 UTC
parent 52049c3f6f42a708305f56fdd45f5f68230ca98e

Regenerate proto for grpc changes

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)