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 {