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

cpp20_streams example response printing is incorrect #121

Closed
anarthal opened this issue Jul 18, 2023 · 0 comments
Closed

cpp20_streams example response printing is incorrect #121

anarthal opened this issue Jul 18, 2023 · 0 comments

Comments

@anarthal
Copy link
Collaborator

        // std::cout << "Response: ";
        // for (int i = 0; i < resp->value().size(); ++i) {
        //     std::cout << resp->value().at(i).value << ", ";
        // }
        // std::cout << std::endl;

        // The following approach was taken in order to be able to
        // deal with the responses, as generated by redis in the case
        // that there are multiple stream 'records' within a single
        // generic_response.  The nesting and number of values in
        // resp.value() are different, depending on the contents
        // of the stream in redis.  Uncomment the above commented-out
        // code for examples while running the XADD command.

Uncomenting the above code causes a build error - should be resp->size() and resp->at()

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