Commit 614c38c7 authored by Dominik Charousset's avatar Dominik Charousset

Fix shadowing warning

parent 6efb587a
...@@ -266,6 +266,7 @@ struct stream_multiplexer_state { ...@@ -266,6 +266,7 @@ struct stream_multiplexer_state {
const char* stream_multiplexer_state::name = "stream_multiplexer"; const char* stream_multiplexer_state::name = "stream_multiplexer";
behavior stream_multiplexer(stateful_actor<stream_multiplexer_state>* self) { behavior stream_multiplexer(stateful_actor<stream_multiplexer_state>* self) {
{ // extra scope for hiding state for initialization from the lambdas below
auto process = [](unit_t&, downstream<int>& out, int x) { auto process = [](unit_t&, downstream<int>& out, int x) {
out.push(x); out.push(x);
}; };
...@@ -279,6 +280,7 @@ behavior stream_multiplexer(stateful_actor<stream_multiplexer_state>* self) { ...@@ -279,6 +280,7 @@ behavior stream_multiplexer(stateful_actor<stream_multiplexer_state>* self) {
self->state.stage = make_counted<impl>(self, sid, process, cleanup); self->state.stage = make_counted<impl>(self, sid, process, cleanup);
self->state.stage->in().continuous(true); self->state.stage->in().continuous(true);
self->streams().emplace(sid, self->state.stage); self->streams().emplace(sid, self->state.stage);
}
return { return {
[=](join_atom) -> stream<int> { [=](join_atom) -> stream<int> {
CAF_MESSAGE("received 'join' request"); CAF_MESSAGE("received 'join' request");
......
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