Commit 992e2bc5 authored by Jakob Otto's avatar Jakob Otto

Fix task-size calculation

parent f2df192f
......@@ -21,6 +21,7 @@
#include <string>
#include "caf/actor.hpp"
#include "caf/detail/serialized_size.hpp"
#include "caf/fwd.hpp"
#include "caf/intrusive/drr_queue.hpp"
#include "caf/intrusive/fifo_inbox.hpp"
......@@ -149,8 +150,8 @@ public:
// nop
}
static constexpr task_size_type task_size(const message&) noexcept {
return 1;
static task_size_type task_size(const message& msg) noexcept {
return detail::serialized_size(msg.msg->content());
}
};
......
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