Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #72 from ipfs/fix/remove-urlstore-special-case
Browse files Browse the repository at this point in the history
chore: remove URL field
  • Loading branch information
Stebalien authored May 17, 2019
2 parents 4f9863c + dd66a0c commit 7cfc32e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions importer/helpers/dagbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ type DagBuilderParams struct {
// NoCopy signals to the chunker that it should track fileinfo for
// filestore adds
NoCopy bool

// URL if non-empty (and NoCopy is also true) indicates that the
// file will not be stored in the datastore but instead retrieved
// from this location via the urlstore.
URL string
}

// New generates a new DagBuilderHelper from the given params and a given
Expand All @@ -87,10 +82,6 @@ func (dbp *DagBuilderParams) New(spl chunker.Splitter) (*DagBuilderHelper, error
db.stat = fi.Stat()
}

if dbp.URL != "" && dbp.NoCopy {
db.fullPath = dbp.URL
}

if dbp.NoCopy && db.fullPath == "" { // Enforce NoCopy
return nil, ErrMissingFsRef
}
Expand Down

0 comments on commit 7cfc32e

Please sign in to comment.