Use memorylocker in example for composer

This commit is contained in:
Marius 2016-09-30 01:14:52 +02:00
parent f5d87095ef
commit 5fceb7eb77
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@ package tusd_test
import (
"github.com/tus/tusd"
"github.com/tus/tusd/consullocker"
"github.com/tus/tusd/filestore"
"github.com/tus/tusd/limitedstore"
"github.com/tus/tusd/memorylocker"
)
func ExampleNewStoreComposer() {
@ -13,8 +13,8 @@ func ExampleNewStoreComposer() {
fs := filestore.New("./data")
fs.UseIn(composer)
cl := consullocker.New(nil)
cl.UseIn(composer)
ml := memorylocker.New()
ml.UseIn(composer)
ls := limitedstore.New(1024*1024*1024, composer.Core, composer.Terminater)
ls.UseIn(composer)