[client] Migrate deprecated grpc client code (#4687)

This commit is contained in:
Viktor Liu
2025-10-30 10:14:27 +01:00
committed by GitHub
parent c530db1455
commit 43c9a51913
8 changed files with 49 additions and 22 deletions

View File

@@ -55,8 +55,7 @@ func NewClient(ctx context.Context, addr string, ourPrivateKey wgtypes.Key, tlsE
var err error
conn, err = nbgrpc.CreateConnection(ctx, addr, tlsEnabled, wsproxy.ManagementComponent)
if err != nil {
log.Printf("createConnection error: %v", err)
return err
return fmt.Errorf("create connection: %w", err)
}
return nil
}