Skip to content

Conversation

@jchemburkar
Copy link
Collaborator

No description provided.

@jchemburkar jchemburkar requested a review from a team as a code owner November 20, 2025 15:00
@jchemburkar jchemburkar reopened this Nov 20, 2025
@jchemburkar jchemburkar requested a review from nbagnard December 1, 2025 17:56
Copy link
Collaborator

@nicholascioli nicholascioli left a comment

Choose a reason for hiding this comment

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

Just left a few comments! I'm still learning the codebase, so feel free to ignore.

None
} else {
Some(x.clone())
macro_rules! handle_auth_mechanism {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this just be a mutable method on ClientOptions? It seems as though it is self-contained enough.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, I see that we don't control ClientOptions. Maybe a newtype might be nice here to keep things organized.

Copy link
Collaborator

@nbagnard nbagnard left a comment

Choose a reason for hiding this comment

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

Your change makes sense, but I'd love to have the same logic used everywhere if possible.
It was hard to explain here as a comment, so I made the changes in a branch on my fork. I extracted the logic in a helper and use it to finalize all client_options instance.
I tried a patch patch and it's Ok.

Since we have a customer willing to try it, it might be worth doing the change now, rather than backlog it.

WDYT?

};
let mut client_options = parse_func().await.map_err(Error::InvalidClientOptions)?;

// the dns resolver is a private, unchangable field in ClientOptions, so we create a second set
Copy link
Collaborator

Choose a reason for hiding this comment

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

We technically only need this on Windows

Copy link
Collaborator

@nbagnard nbagnard left a comment

Choose a reason for hiding this comment

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

LGTM!

Just added a couple of tiny suggestions for a few comments.

jchemburkar and others added 3 commits December 18, 2025 05:09
Co-authored-by: Natacha Bagnard <[email protected]>
Co-authored-by: Natacha Bagnard <[email protected]>
Co-authored-by: Natacha Bagnard <[email protected]>
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.

3 participants