cli: Add memorylocker when azurestore is used
Closes https://github.com/tus/tusd/issues/662
This commit is contained in:
parent
d6e0abee28
commit
965a011b1b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue