Skip to content

Conversation

@mattsre
Copy link

@mattsre mattsre commented Dec 30, 2025

Small improvement to send_non_blocking() on multi-topic producers to use the entry API. Removes the need to clone the topic name and get the producer after inserting it. Additional removal of an unnecessary clone on the connect() method

@mattsre mattsre force-pushed the massif-clone-cleanup branch from 43ac093 to 6ed71e8 Compare December 30, 2025 06:45
.client
.producer()
.with_topic(entry.key())
.with_options(self.options.clone());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The multi-topic producer should probably share options with the inner producers to remove this clone. Would you be open to me referencing the the producer options from the multi-topic producer instead of cloning for each topic in the multi-producer? I'd need to explore how to do that without changing the single-topic producer too much

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

Successfully merging this pull request may close these issues.

1 participant