fix: need to pass tus

This commit is contained in:
Derrick Hammer 2024-03-02 06:24:12 -05:00
parent 2e9694149b
commit 4db07d5170
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
Metadata: f.metadata,
Hash: file.File.CID().Hash.HashBytes(),
Type: file.File.CID().Type,
Tus: f.tus,
}))
}

View File

@ -1841,6 +1841,7 @@ func (s *S5API) newFile(params FileParams) *S5File {
params.Protocol = s.protocol
params.Metadata = s.metadata
params.Storage = s.storage
params.Tus = s.tusHandler
return NewFile(params)
}