Commit 5bff8b37 authored by Joseph Noir's avatar Joseph Noir

Fix update message in config server

parent 1d632b76
......@@ -86,13 +86,13 @@ behavior config_serv_impl(stateful_actor<kvstate>* self) {
// we never put a nullptr in our map
auto subscriber = actor_cast<actor>(subscriber_ptr);
if (subscriber != self->current_sender())
self->send(subscriber, update_atom::value, key, vp.second);
self->send(subscriber, update_atom::value, key, vp.first);
}
// also iterate all subscribers for '*'
for (auto& subscriber : self->state.data[wildcard].second)
if (subscriber != self->current_sender())
self->send(actor_cast<actor>(subscriber), update_atom::value,
key, vp.second);
key, vp.first);
},
// get a key/value pair
[=](get_atom, std::string& key) -> message {
......
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