Commit 294b247b authored by Dominik Charousset's avatar Dominik Charousset

Fix shadowing warning

parent c3a9fb71
...@@ -170,8 +170,8 @@ void broker::invoke_message(const actor_addr& sender, message_id mid, ...@@ -170,8 +170,8 @@ void broker::invoke_message(const actor_addr& sender, message_id mid,
std::swap(msg, m_dummy_node.msg); std::swap(msg, m_dummy_node.msg);
try { try {
auto bhvr = bhvr_stack().back(); auto bhvr = bhvr_stack().back();
auto mid = bhvr_stack().back_id(); auto bid = bhvr_stack().back_id();
switch (m_invoke_policy.handle_message(this, &m_dummy_node, bhvr, mid)) { switch (m_invoke_policy.handle_message(this, &m_dummy_node, bhvr, bid)) {
case policy::hm_msg_handled: { case policy::hm_msg_handled: {
CAF_LOG_DEBUG("handle_message returned hm_msg_handled"); CAF_LOG_DEBUG("handle_message returned hm_msg_handled");
while (!bhvr_stack().empty() while (!bhvr_stack().empty()
...@@ -187,7 +187,7 @@ void broker::invoke_message(const actor_addr& sender, message_id mid, ...@@ -187,7 +187,7 @@ void broker::invoke_message(const actor_addr& sender, message_id mid,
case policy::hm_skip_msg: case policy::hm_skip_msg:
case policy::hm_cache_msg: { case policy::hm_cache_msg: {
CAF_LOG_DEBUG("handle_message returned hm_skip_msg or hm_cache_msg"); CAF_LOG_DEBUG("handle_message returned hm_skip_msg or hm_cache_msg");
auto e = mailbox_element::create(sender, mid, auto e = mailbox_element::create(sender, bid,
std::move(m_dummy_node.msg)); std::move(m_dummy_node.msg));
m_priority_policy.push_to_cache(unique_mailbox_element_pointer{e}); m_priority_policy.push_to_cache(unique_mailbox_element_pointer{e});
break; break;
......
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