Skip to content

Commit

Permalink
multiretrieve (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott authored Jun 11, 2021
1 parent f85f442 commit 081d7d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/retrieval_deal.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"errors"
"fmt"
"io/ioutil"
"math/big"
"os"
"path/filepath"
"strings"
"time"
Expand Down Expand Up @@ -110,7 +110,7 @@ func (de *retrievalDealExecutor) executeAndMonitorDeal(ctx context.Context, upda
}

ref := &api.FileRef{
Path: filepath.Join(de.config.NodeDataDir, "ret"),
Path: filepath.Join(de.config.NodeDataDir, de.task.PayloadCID.x),
IsCAR: de.task.CARExport.x,
}

Expand Down Expand Up @@ -197,7 +197,7 @@ func (de *retrievalDealExecutor) executeAndMonitorDeal(ctx context.Context, upda
return err
}

rdata, err := ioutil.ReadFile(filepath.Join(de.config.DataDir, "ret"))
rdata, err := os.Stat(filepath.Join(de.config.DataDir, de.task.PayloadCID.x))
if err != nil {
return err
}
Expand Down

0 comments on commit 081d7d2

Please sign in to comment.