fix: use a background ctx

This commit is contained in:
Derrick Hammer 2024-02-18 00:27:19 -05:00
parent 88a636ba9c
commit 0873dee1f3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -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 {