paladin-dalao commented on issue #50:
URL:
https://github.com/apache/pulsar-client-cpp/issues/50#issuecomment-1280925210
Do I need to recreate the producer when the partion changes?
Now the logic is that the producer is not released, saved in a map
```
pulsar_message_t *message = pulsar_message_create();
pulsar_message_set_content(message, (const void *)data.c_str(),
data.length());
pulsar_message_set_property(message, "message_key", key.c_str());
pulsar_message_set_event_timestamp(message, beginTimestamp);
pulsar_producer_send_async(producer, message,
PulsarProducer::SendCallback, (void *)message);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]