From 0873dee1f3dfbf2f57d91cf095e28b425ff3e60e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 18 Feb 2024 00:27:19 -0500 Subject: [PATCH] fix: use a background ctx --- protocols/s5/tus.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/s5/tus.go b/protocols/s5/tus.go index fb06200..dd1bedf 100644 --- a/protocols/s5/tus.go +++ b/protocols/s5/tus.go @@ -329,7 +329,8 @@ func (t *TusHandler) SetStorageProtocol(storageProtocol storage.StorageProtocol) t.storageProtocol = storageProtocol } -func (t *TusHandler) uploadTask(ctx context.Context, hash []byte) error { +func (t *TusHandler) uploadTask(hash []byte) error { + ctx := context.Background() exists, upload := t.UploadExists(ctx, hash) if !exists {