Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe-send nest #51

Open
IlTeo285 opened this issue Oct 22, 2019 · 0 comments
Open

Subscribe-send nest #51

IlTeo285 opened this issue Oct 22, 2019 · 0 comments

Comments

@IlTeo285
Copy link

I created a subscriber that when triggered executes a callback that inside performs a send request
The send request stuck into an infinite wait.
Any suggestion?

sub.psubscribe("Configurations.Requests.*", [this](const std::string& chan, const std::string& msg) {
   client.send({ "JSON.GET", "config" }, [this](cpp_redis::reply& reply) {
      _logger->info("{}", reply.as_string());
   });
}).commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant