Commit d896d712 authored by Dominik Charousset's avatar Dominik Charousset

Fix assertion

parent 9d87f3ca
......@@ -87,22 +87,22 @@ struct mailbox_category_corrector {
template <>
struct mailbox_category_corrector<downstream_msg> {
static message_id apply(message_id x) {
// Downstream messages are always asynchronous. (TODO: true?)
CAF_ASSERT(x.is_async());
CAF_IGNORE_UNUSED(x);
return make_message_id(message_id::downstream_message_category
auto result = make_message_id(message_id::downstream_message_category
<< message_id::category_offset);
CAF_ASSERT(x.is_async() || x == result);
return result;
}
};
template <>
struct mailbox_category_corrector<upstream_msg> {
static message_id apply(message_id x) {
// Upstream messages are always asynchronous. (TODO: true?)
CAF_ASSERT(x.is_async());
CAF_IGNORE_UNUSED(x);
return make_message_id(message_id::upstream_message_category
auto result = make_message_id(message_id::upstream_message_category
<< message_id::category_offset);
CAF_ASSERT(x.is_async() || x == result);
return result;
}
};
......
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