From 62f63a29b5c2b72fa97abee43b0ebcc4963155bb Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 30 Jun 2020 13:56:37 +0300 Subject: [PATCH] remove useless error argument from retrieveData --- lotus-soup/baseline.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lotus-soup/baseline.go b/lotus-soup/baseline.go index 134d42fec..fb80808ba 100644 --- a/lotus-soup/baseline.go +++ b/lotus-soup/baseline.go @@ -113,16 +113,13 @@ func runBaselineClient(t *TestEnvironment) error { carExport := true t.RecordMessage("trying to retrieve %s", fcid) - retrieveData(t, ctx, err, client, fcid, carExport, data) + retrieveData(t, ctx, client, fcid, carExport, data) t.D().ResettingHistogram("deal.retrieved").Update(int64(time.Since(t1))) t.SyncClient.MustSignalEntry(ctx, stateStopMining) time.Sleep(10 * time.Second) // wait for metrics to be emitted - // TODO broadcast published content CIDs to other clients - // TODO select a random piece of content published by some other client and retrieve it - t.SyncClient.MustSignalAndWait(ctx, stateDone, t.TestInstanceCount) return nil } @@ -169,7 +166,7 @@ loop: } } -func retrieveData(t *TestEnvironment, ctx context.Context, err error, client api.FullNode, fcid cid.Cid, carExport bool, data []byte) { +func retrieveData(t *TestEnvironment, ctx context.Context, client api.FullNode, fcid cid.Cid, carExport bool, data []byte) { t1 := time.Now() offers, err := client.ClientFindData(ctx, fcid) if err != nil {