diff --git a/api/s5/file.go b/api/s5/file.go index 6c5a2c8..1fbeb27 100644 --- a/api/s5/file.go +++ b/api/s5/file.go @@ -29,6 +29,7 @@ type S5File struct { cid *encoding.CID read bool tus *s5.TusHandler + ctx context.Context } type FileParams struct { @@ -46,6 +47,7 @@ func NewFile(params FileParams) *S5File { hash: params.Hash, protocol: params.Protocol, tus: params.Tus, + ctx: context.Background(), } }