Skip to content

Commit

Permalink
rpc: include OBJ_USER_KEY in RPCArg constructor checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed May 9, 2021
1 parent 2b45cf0 commit d9e2183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct RPCArg {
m_oneline_description{std::move(oneline_description)},
m_type_str{std::move(type_str)}
{
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ);
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ && type != Type::OBJ_USER_KEYS);
}

RPCArg(
Expand All @@ -193,7 +193,7 @@ struct RPCArg {
m_oneline_description{std::move(oneline_description)},
m_type_str{std::move(type_str)}
{
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ);
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ || type == Type::OBJ_USER_KEYS);
}

bool IsOptional() const;
Expand Down

0 comments on commit d9e2183

Please sign in to comment.