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 ( 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)