cli: Add memorylocker when azurestore is used

Closes https://github.com/tus/tusd/issues/662
This commit is contained in:
Marius 2022-02-21 12:07:08 +01:00
parent d6e0abee28
commit 965a011b1b
1 changed files with 2 additions and 1 deletions

View File

@ -133,9 +133,10 @@ func CreateComposer() {
store := azurestore.New(azService) store := azurestore.New(azService)
store.ObjectPrefix = Flags.AzObjectPrefix store.ObjectPrefix = Flags.AzObjectPrefix
store.Container = Flags.AzStorage store.Container = Flags.AzStorage
store.UseIn(Composer) store.UseIn(Composer)
locker := memorylocker.New()
locker.UseIn(Composer)
} else { } else {
dir, err := filepath.Abs(Flags.UploadDir) dir, err := filepath.Abs(Flags.UploadDir)
if err != nil { if err != nil {