// errMismatch if response mismatches request return error. func errMismatch(resp *pb.Response, req *pb.Request) error { return errors.Errorf("message type mismatches, response[%s] request[%s]", resp.GetType(), req.GetType()) }