From 8a32e69b06a3fe0d716e6502a2accfa767e4bd75 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 18 Feb 2024 00:01:01 -0500 Subject: [PATCH] fix: use storageProtocol --- protocols/s5/tus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/s5/tus.go b/protocols/s5/tus.go index 9fb8432..4c3a815 100644 --- a/protocols/s5/tus.go +++ b/protocols/s5/tus.go @@ -463,7 +463,7 @@ func (t *TusHandler) worker() { continue } - _, err = t.CreateUpload(info.Context, decodedHash.HashBytes(), info.Upload.ID, uploaderID, uploaderIP, info.Context.Value("protocol").(string)) + _, err = t.CreateUpload(info.Context, decodedHash.HashBytes(), info.Upload.ID, uploaderID, uploaderIP, t.storageProtocol.Name()) if err != nil { errorResponse.Body = "Could not create tus upload" info.Upload.StopUpload(errorResponse)