Skip to content

Subscribe-send nest #51

Open
Open
@IlTeo285

Description

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();

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions