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

アドレスの解析処理の改善 #245

Closed
yamamoto-febc opened this issue Dec 9, 2021 · 0 comments · Fixed by #246
Closed

アドレスの解析処理の改善 #245

yamamoto-febc opened this issue Dec 9, 2021 · 0 comments · Fixed by #246

Comments

@yamamoto-febc
Copy link
Member

from #244

grpcutilパッケージの、gRPCサーバがリッスンするアドレス(文字列)をパースする処理: ParseTarget(target string, skipUnixColonParsing bool) (ret resolver.Target)でDeprecated警告が出る。

func ParseTarget(target string, skipUnixColonParsing bool) (ret resolver.Target) {

この実装は元々google.golang.org/grpcのinternalなパッケージから移植したもの。以下の修正にて移植元のコードが修正され、戻り値のresolver.Targetに対してDeprecatedが付与された。
grpc/grpc-go#4817

修正が必要だがアップストリームをコピーした実装は本来好ましくないため出来れば無くしたい。
このため以下の方向で対応できないか調査/検討する。

  • そもそもコピー実装をなくせないか?別のpublicなfuncで代用できないか?
  • それができない場合、どう対応するか?
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 a pull request may close this issue.

1 participant