loooprpc: replace deprecated grpc.Dial with grpc.NewClient

- Update assets/client.go to use grpc.NewClient
- Update swap_server_client.go to use grpc.NewClient
- Replace grpc.WithInsecure() with insecure.NewCredentials()
This commit is contained in:
Slyghtning 2025-12-11 15:16:30 +01:00
parent a3db145ced
commit 175b7d601b
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
10 changed files with 1145 additions and 4309 deletions

View file

@ -306,7 +306,7 @@ func getClientConn(config *TapdConfig) (*grpc.ClientConn, error) {
}
// Dial the gRPC server.
conn, err := grpc.Dial(config.Host, opts...)
conn, err := grpc.NewClient(config.Host, opts...)
if err != nil {
return nil, err
}