cli: Switch to memorylocker for filestore

This commit is contained in:
Marius 2022-12-07 10:39:04 +01:00
parent edf8238af9
commit 621de70da4
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import (
"strings" "strings"
"github.com/tus/tusd/pkg/azurestore" "github.com/tus/tusd/pkg/azurestore"
"github.com/tus/tusd/pkg/filelocker"
"github.com/tus/tusd/pkg/filestore" "github.com/tus/tusd/pkg/filestore"
"github.com/tus/tusd/pkg/gcsstore" "github.com/tus/tusd/pkg/gcsstore"
"github.com/tus/tusd/pkg/handler" "github.com/tus/tusd/pkg/handler"
@ -185,7 +184,9 @@ func CreateComposer() {
store := filestore.New(dir) store := filestore.New(dir)
store.UseIn(Composer) 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) locker.UseIn(Composer)
} }