refactor: add context

This commit is contained in:
Derrick Hammer 2024-02-17 02:37:52 -05:00
parent b231f9d769
commit c452b0c271
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -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(),
}
}