Skip to content

Commit

Permalink
add ipfs swarm addresss env set (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetechnocrat-dev authored Sep 27, 2023
1 parent 2f0492c commit 16d0986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/bacalhau/bacalhau.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ func DownloadBacalhauResults(dir string, submittedJob *model.Job, results []mode
Timeout: model.DefaultIPFSTimeout,
OutputDir: dir,
}
if os.Getenv("BACALHAU_IPFS_SWARM_ADDRESSES") != "" {
downloadSettings.IPFSSwarmAddrs = os.Getenv("BACALHAU_IPFS_SWARM_ADDRESSES")
}
downloadSettings.OutputDir = dir
downloaderProvider := util.NewStandardDownloaders(cm, downloadSettings)
err := downloader.DownloadResults(context.Background(), results, downloaderProvider, downloadSettings)
Expand Down

0 comments on commit 16d0986

Please sign in to comment.