From c452b0c271d5dbe133db045b1cbc5776595071ea Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Feb 2024 02:37:52 -0500 Subject: [PATCH] refactor: add context --- api/s5/file.go | 2 ++ 1 file changed, 2 insertions(+) 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(), } }