Use memorylocker in example for composer
This commit is contained in:
parent
f5d87095ef
commit
5fceb7eb77
|
@ -2,9 +2,9 @@ package tusd_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tus/tusd"
|
"github.com/tus/tusd"
|
||||||
"github.com/tus/tusd/consullocker"
|
|
||||||
"github.com/tus/tusd/filestore"
|
"github.com/tus/tusd/filestore"
|
||||||
"github.com/tus/tusd/limitedstore"
|
"github.com/tus/tusd/limitedstore"
|
||||||
|
"github.com/tus/tusd/memorylocker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewStoreComposer() {
|
func ExampleNewStoreComposer() {
|
||||||
|
@ -13,8 +13,8 @@ func ExampleNewStoreComposer() {
|
||||||
fs := filestore.New("./data")
|
fs := filestore.New("./data")
|
||||||
fs.UseIn(composer)
|
fs.UseIn(composer)
|
||||||
|
|
||||||
cl := consullocker.New(nil)
|
ml := memorylocker.New()
|
||||||
cl.UseIn(composer)
|
ml.UseIn(composer)
|
||||||
|
|
||||||
ls := limitedstore.New(1024*1024*1024, composer.Core, composer.Terminater)
|
ls := limitedstore.New(1024*1024*1024, composer.Core, composer.Terminater)
|
||||||
ls.UseIn(composer)
|
ls.UseIn(composer)
|
||||||
|
|
Loading…
Reference in New Issue