You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dial should have picked up the custom resolver in both occasions, but didn't when the registered resolver had a scheme with mixed casing
Register should have overwritten/error'd when registering two resolvers with the same scheme, instead it registered both
It looks like this change was introduced in 1.42, when #4817 landed. Which made Dial more correct by using net/url's parse URL. Before that change was introduced register would preserve the casing so the first example worked, but the second one didn't.
The text was updated successfully, but these errors were encountered:
Actually, since the behavior has been this way for over a year, and since Java and C++ both behave this way, I'm just going to simply update the documentation to mention that the case is collapsed to lower-case and all resolver Scheme()s should return only lowercase characters instead.
What version of gRPC are you using?
1.45.0
What version of Go are you using (
go version
)?go version go1.19.3 darwin/arm64
What operating system (Linux, Windows, …) and version?
Darwin
What did you do?
What did you expect to see?
It looks like this change was introduced in 1.42, when #4817 landed. Which made Dial more correct by using net/url's parse URL. Before that change was introduced register would preserve the casing so the first example worked, but the second one didn't.
The text was updated successfully, but these errors were encountered: