From 1f4b4c7887cecd9d13ddf04a2daa2256cd7b81cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20S=C3=A1rai?= Date: Mon, 29 Jul 2024 13:43:09 +0200 Subject: [PATCH] feat(act): download with publisher --- pkg/check/act/act.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/check/act/act.go b/pkg/check/act/act.go index aecd0d122..e272e4e2f 100644 --- a/pkg/check/act/act.go +++ b/pkg/check/act/act.go @@ -177,7 +177,7 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int ] }`))) - pErr := upClient.PatchActGrantees(ctx, &pFile, file.Address(), file.HistroryAddress(), batchID) + pErr := upClient.PatchActGrantees(ctx, &pFile, gFile.Address(), gFile.HistroryAddress(), batchID) if pErr != nil { return fmt.Errorf("node %s: PatchActGrantees: %w", upNodeName, pErr) } @@ -201,8 +201,8 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int // download act file c.logger.Infof("config: %+v", client1.Config()) his := pFile.HistroryAddress() - c.logger.Infof("ref: %v, act: %v, pubk: %v, history: %v", pFile.Address(), act, publisher, his) - size1, hash1, err1 := client1.DownloadActFile(ctx, pFile.Address(), &api.DownloadOptions{Act: &act, ActPublicKey: &publisher, ActHistoryAddress: &his}) + c.logger.Infof("ref: %v, act: %v, pubk: %v, history: %v", fileAddress, act, publisher, his) + size1, hash1, err1 := client1.DownloadActFile(ctx, fileAddress, &api.DownloadOptions{Act: &act, ActPublicKey: &publisher, ActHistoryAddress: &his}) if err1 != nil { return fmt.Errorf("node %s: %w", nodeName1, err1) }