From 16ed748bfb35d014996b8bc6e06b043654d2cb34 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Feb 2024 23:58:31 -0500 Subject: [PATCH] fix: cast to uint not uint64 --- 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 985fef6..28919a7 100644 --- a/protocols/s5/tus.go +++ b/protocols/s5/tus.go @@ -444,7 +444,7 @@ func (t *TusHandler) worker() { continue } - uploaderID, ok := info.Context.Value(middleware.DEFAULT_AUTH_CONTEXT_KEY).(uint64) + uploaderID, ok := info.Context.Value(middleware.DEFAULT_AUTH_CONTEXT_KEY).(uint) if !ok { errorResponse.Body = "Missing user id in context" info.Upload.StopUpload(errorResponse)