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

@@ -534,8 +534,8 @@ func (server *ArgoCDServer) Listen() (*Listeners, error) {
} else {
dOpts = append(dOpts, grpc.WithTransportCredentials(insecure.NewCredentials()))
}
//nolint:staticcheck
conn, err := grpc.Dial(fmt.Sprintf("localhost:%d", server.ListenPort), dOpts...)
conn, err := grpc.NewClient(fmt.Sprintf("localhost:%d", server.ListenPort), dOpts...)
if err != nil {
utilio.Close(mainLn)
utilio.Close(metricsLn)