diff options
author | Craig Tiller <ctiller@google.com> | 2017-05-17 12:52:10 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-05-17 12:52:10 -0700 |
commit | 7ffb7232be38c2c5abe1059fe84d7a2f8d98e133 (patch) | |
tree | 6a8ebad81318b89e701120e715fd6a9cfe180912 /src/core | |
parent | 095a220acb68365a39a7c711d6d244827d080d08 (diff) |
Fix comparison
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index c70efec217..fe9e88b84e 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -1494,14 +1494,16 @@ static void perform_stream_op(grpc_exec_ctx *exec_ctx, grpc_transport *gt, if (!t->is_client) { if (op->send_initial_metadata) { - GPR_ASSERT(0 == gpr_time_cmp(gpr_inf_future(GPR_CLOCK_MONOTONIC), - op->payload->send_initial_metadata - .send_initial_metadata->deadline)); + gpr_timespec deadline = + op->payload->send_initial_metadata.send_initial_metadata->deadline; + GPR_ASSERT(0 == + gpr_time_cmp(gpr_inf_future(deadline.clock_type), deadline)); } if (op->send_trailing_metadata) { - GPR_ASSERT(0 == gpr_time_cmp(gpr_inf_future(GPR_CLOCK_MONOTONIC), - op->payload->send_trailing_metadata - .send_trailing_metadata->deadline)); + gpr_timespec deadline = + op->payload->send_trailing_metadata.send_trailing_metadata->deadline; + GPR_ASSERT(0 == + gpr_time_cmp(gpr_inf_future(deadline.clock_type), deadline)); } } |