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

add Debug trait to DefaultClientContext/DefaultConsumerContext #401

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

DXist
Copy link
Contributor

@DXist DXist commented Oct 29, 2021

This PR adds Debug trait derives to default client and consumer contexts.

My context is following - I've created a custom consumer context that propagates the statistics provided by librdkafka via tokio::sync::watch channel. The code that uses consumers either with custom or default context has a data structure with a field parameterised by context. This data structure is logged with debug formatting. This requires Debug trait implemented for both contexts.

@benesch benesch merged commit f41af6c into fede1024:master Nov 2, 2021
@benesch
Copy link
Collaborator

benesch commented Nov 2, 2021

Thanks!

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.

2 participants