diff options
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 1b843e2d7..b9cb0210b 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -11,12 +11,16 @@ import ( type WFS struct { filer string listDirectoryEntriesCache *ccache.Cache + collection string + replication string } -func NewSeaweedFileSystem(filer string) *WFS { +func NewSeaweedFileSystem(filer string, collection string, replication string) *WFS { return &WFS{ - filer: filer, + filer: filer, listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(6000).ItemsToPrune(100)), + collection: collection, + replication: replication, } } |
