diff --git a/cmd/downloader/downloader/downloader.go b/cmd/downloader/downloader/downloader.go index cb0bb6c92..7b2bfdd36 100644 --- a/cmd/downloader/downloader/downloader.go +++ b/cmd/downloader/downloader/downloader.go @@ -224,10 +224,10 @@ func (d *Downloader) verify() error { func (d *Downloader) addSegments() error { logEvery := time.NewTicker(20 * time.Second) defer logEvery.Stop() - if err := BuildTorrentFilesIfNeed(context.Background(), d.cfg.DataDir); err != nil { + if err := BuildTorrentFilesIfNeed(context.Background(), d.SnapDir()); err != nil { return err } - files, err := seedableSegmentFiles(d.cfg.DataDir) + files, err := seedableSegmentFiles(d.SnapDir()) if err != nil { return fmt.Errorf("seedableSegmentFiles: %w", err) }