Skip to content

Commit

Permalink
Use memorylocker in example for composer
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 29, 2016
1 parent f5d8709 commit 5fceb7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer_test.go
Expand Up @@ -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() {
Expand All @@ -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)
Expand Down

0 comments on commit 5fceb7e

Please sign in to comment.