Skip to content

Commit

Permalink
Constify failed_before_recv_message check (grpc#26330)
Browse files Browse the repository at this point in the history
* Constify failed recv_message check

* Update call.h
  • Loading branch information
vjpai authored May 21, 2021
1 parent e8a1098 commit ef35b4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/lib/surface/call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ grpc_compression_algorithm grpc_call_compression_for_level(
return algo;
}

bool grpc_call_failed_before_recv_message(grpc_call* c) {
bool grpc_call_failed_before_recv_message(const grpc_call* c) {
return c->call_failed_before_recv_message;
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/lib/surface/call.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ grpc_compression_algorithm grpc_call_compression_for_level(
* an error (as opposed to a graceful end-of-stream) */
/* TODO(markdroth): This is currently available only to the C++ API.
Move to surface API if requested by other languages. */
bool grpc_call_failed_before_recv_message(grpc_call* c);
bool grpc_call_failed_before_recv_message(const grpc_call* c);

extern grpc_core::TraceFlag grpc_call_error_trace;
extern grpc_core::TraceFlag grpc_compression_trace;
Expand Down

0 comments on commit ef35b4a

Please sign in to comment.