Commit 50f17da8 authored by gejun's avatar gejun

r35360: Enable null method in SubCall of ParallelChannel

parent 5448712c
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
namespace brpc { namespace brpc {
// Used in implementations of CallMapper::Map. // Possible values of SubCall.flag, MUST be bitwise exclusive.
// To rpc maintainer: values must be bitwise exclusive.
static const int DELETE_REQUEST = 1; static const int DELETE_REQUEST = 1;
static const int DELETE_RESPONSE = 2; static const int DELETE_RESPONSE = 2;
static const int SKIP_SUB_CHANNEL = 4; static const int SKIP_SUB_CHANNEL = 4;
...@@ -59,7 +58,7 @@ struct SubCall { ...@@ -59,7 +58,7 @@ struct SubCall {
// True if this object is constructed by Bad(). // True if this object is constructed by Bad().
bool is_bad() const { bool is_bad() const {
return request == NULL || response == NULL || method == NULL; return request == NULL || response == NULL;
} }
// True if this object is constructed by Skip(). // True if this object is constructed by Skip().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment