Commit 1f3cc4e7 authored by Dominik Charousset's avatar Dominik Charousset

Silence return-type warning

parent 5c61e2f0
...@@ -120,7 +120,11 @@ bool abstract_actor_shell::enqueue(mailbox_element_ptr ptr, execution_unit*) { ...@@ -120,7 +120,11 @@ bool abstract_actor_shell::enqueue(mailbox_element_ptr ptr, execution_unit*) {
owner_->mpx().register_writing(owner_); owner_->mpx().register_writing(owner_);
return true; return true;
} }
case intrusive::inbox_result::queue_closed: { case intrusive::inbox_result::success:
// Enqueued to a running actors' mailbox: nothing to do.
CAF_LOG_ACCEPT_EVENT(false);
return true;
default: { // intrusive::inbox_result::queue_closed
CAF_LOG_REJECT_EVENT(); CAF_LOG_REJECT_EVENT();
home_system().base_metrics().rejected_messages->inc(); home_system().base_metrics().rejected_messages->inc();
if (collects_metrics) if (collects_metrics)
...@@ -131,10 +135,6 @@ bool abstract_actor_shell::enqueue(mailbox_element_ptr ptr, execution_unit*) { ...@@ -131,10 +135,6 @@ bool abstract_actor_shell::enqueue(mailbox_element_ptr ptr, execution_unit*) {
} }
return false; return false;
} }
case intrusive::inbox_result::success:
// Enqueued to a running actors' mailbox: nothing to do.
CAF_LOG_ACCEPT_EVENT(false);
return true;
} }
} }
......
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