Skip to content

How to set ttl? #304

Description

@Mike4Feet

When I wanna produce a message, how to set ttl of the message?

I can't find it in example.cpp

string line;
while (getline(cin, line)) {
    // Set the payload on this builder
    builder.payload(line);

    // Actually produce the message we've built
    producer.produce(builder);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions