From 621de70da485cc5b5a04280fbdaa4bae097eb51d Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 7 Dec 2022 10:39:04 +0100 Subject: [PATCH] cli: Switch to memorylocker for filestore --- cmd/tusd/cli/composer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tusd/cli/composer.go b/cmd/tusd/cli/composer.go index 70e8eec..36a5fe7 100644 --- a/cmd/tusd/cli/composer.go +++ b/cmd/tusd/cli/composer.go @@ -7,7 +7,6 @@ import ( "strings" "github.com/tus/tusd/pkg/azurestore" - "github.com/tus/tusd/pkg/filelocker" "github.com/tus/tusd/pkg/filestore" "github.com/tus/tusd/pkg/gcsstore" "github.com/tus/tusd/pkg/handler" @@ -185,7 +184,9 @@ func CreateComposer() { store := filestore.New(dir) store.UseIn(Composer) - locker := filelocker.New(dir) + // TODO: Do not use filelocker here, because it does not implement the lock + // release mechanism yet. + locker := memorylocker.New() locker.UseIn(Composer) }