Commit dd66a0cf authored by Steven Allen's avatar Steven Allen

chore: remove URL field

We now just use the AbsPath field for both URLs and file paths.
parent 4f9863c9
......@@ -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
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment