Skip to content

Commit d9e2183

Browse files
committed
rpc: include OBJ_USER_KEY in RPCArg constructor checks
1 parent 2b45cf0 commit d9e2183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct RPCArg {
173173
m_oneline_description{std::move(oneline_description)},
174174
m_type_str{std::move(type_str)}
175175
{
176-
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ);
176+
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ && type != Type::OBJ_USER_KEYS);
177177
}
178178

179179
RPCArg(
@@ -193,7 +193,7 @@ struct RPCArg {
193193
m_oneline_description{std::move(oneline_description)},
194194
m_type_str{std::move(type_str)}
195195
{
196-
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ);
196+
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ || type == Type::OBJ_USER_KEYS);
197197
}
198198

199199
bool IsOptional() const;

0 commit comments

Comments
 (0)