From f4e3f3f8d6d816bab51c576e680c65faeaece30e Mon Sep 17 00:00:00 2001 From: Nathaniel Manista Date: Tue, 24 Feb 2015 20:19:02 +0000 Subject: Avoid CANCELLATION ticket kind for back-to-front tickets. It's not (yet, see issue 752) allowed and code at the higher level doesn't know how to deal with it. --- src/python/src/grpc/_adapter/rear.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/python/src/grpc/_adapter/rear.py b/src/python/src/grpc/_adapter/rear.py index d16fbeecf7..94ff66ffda 100644 --- a/src/python/src/grpc/_adapter/rear.py +++ b/src/python/src/grpc/_adapter/rear.py @@ -170,7 +170,8 @@ class RearLink(ticket_interfaces.RearLink, activated.Activated): if event.status.code is _low.Code.OK: category = tickets.Kind.COMPLETION elif event.status.code is _low.Code.CANCELLED: - category = tickets.Kind.CANCELLATION + # TODO(issue 752): Use a CANCELLATION ticket kind here. + category = tickets.Kind.SERVICER_FAILURE elif event.status.code is _low.Code.EXPIRED: category = tickets.Kind.EXPIRATION else: -- cgit v1.2.3