fix: replace grpc.NewClient (#19653) (#24188)

Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>
This commit is contained in:
Cayde6
2025-09-11 23:05:57 +09:00
committed by GitHub
parent d54c8afc09
commit c64183717b
8 changed files with 50 additions and 70 deletions

View File

@@ -542,7 +542,7 @@ func (c *client) newConn() (*grpc.ClientConn, io.Closer, error) {
if c.UserAgent != "" {
dialOpts = append(dialOpts, grpc.WithUserAgent(c.UserAgent))
}
conn, e := grpc_util.BlockingDial(ctx, network, serverAddr, creds, dialOpts...)
conn, e := grpc_util.BlockingNewClient(ctx, network, serverAddr, creds, dialOpts...)
closers = append(closers, conn)
return conn, utilio.NewCloser(func() error {
var firstErr error