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

Construct ClientRequest from &mut KeyConfig #56

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

DanGould
Copy link
Contributor

@DanGould DanGould commented Jan 8, 2024

ClientRequests are single use so one making multiple requests needs to use the KeyConfig multiple times. Making each one from a reference rather than an owned KeyConfig allows this.

edit: The CI errors appear to be from the new clippy version and do not have to do with this change

ClientRequests are single use so one making multiple requests needs to
use they KeyConfig multiple times. Making each one from a reference
rather than an owned `KeyConfig` allows this.
@martinthomson
Copy link
Owner

Thanks Dan, this makes sense.

Let me know if you would like me to cut a new release with this one. There are a few cleanup items to look into before I do that.

@martinthomson martinthomson merged commit bff59d0 into martinthomson:main Jan 8, 2024
2 checks passed
@DanGould
Copy link
Contributor Author

DanGould commented Jan 8, 2024

It'd be great to get cut one but there's no pressure the way there was for KeyConfig to be Clone. I just had this change locally and figured I should upstream it.

Thanks for the quick turnaround

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