Commit 130edc98 authored by Dominik Charousset's avatar Dominik Charousset

Replace magic numbers with constants

parent 75218859
...@@ -88,8 +88,8 @@ void inbound_path::handle(downstream_msg::batch& x) { ...@@ -88,8 +88,8 @@ void inbound_path::handle(downstream_msg::batch& x) {
void inbound_path::emit_ack_open(local_actor* self, actor_addr rebind_from) { void inbound_path::emit_ack_open(local_actor* self, actor_addr rebind_from) {
CAF_LOG_TRACE(CAF_ARG(slots) << CAF_ARG(rebind_from)); CAF_LOG_TRACE(CAF_ARG(slots) << CAF_ARG(rebind_from));
assigned_credit = 50; // TODO: put constant in some header assigned_credit = initial_credit;
int32_t desired_batch_size = 50; // TODO: put constant in some header int32_t desired_batch_size = initial_credit;
unsafe_send_as(self, hdl, unsafe_send_as(self, hdl,
make<upstream_msg::ack_open>( make<upstream_msg::ack_open>(
slots.invert(), self->address(), std::move(rebind_from), slots.invert(), self->address(), std::move(rebind_from),
......
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