diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-11 12:45:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-11 12:45:24 -0700 |
| commit | d7f3acb2c056534f29950f3586d804ec274349b2 (patch) | |
| tree | 0fa0f3326a71f97514374888ebc019afdfde3dcc /weed/filesys/wfs.go | |
| parent | ed5468259867502facd8df0e3e90574421abfc94 (diff) | |
| download | seaweedfs-d7f3acb2c056534f29950f3586d804ec274349b2.tar.xz seaweedfs-d7f3acb2c056534f29950f3586d804ec274349b2.zip | |
refactor
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 5e994d14e..49db18b6e 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -16,7 +16,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/pb" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/util" - "github.com/chrislusf/seaweedfs/weed/util/pb_cache" + "github.com/chrislusf/seaweedfs/weed/util/chunk_cache" "github.com/seaweedfs/fuse" "github.com/seaweedfs/fuse/fs" ) @@ -64,7 +64,7 @@ type WFS struct { root fs.Node fsNodeCache *FsCache - chunkCache *pb_cache.ChunkCache + chunkCache *chunk_cache.ChunkCache } type statsCache struct { filer_pb.StatisticsResponse @@ -81,7 +81,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { return make([]byte, option.ChunkSizeLimit) }, }, - chunkCache: pb_cache.NewChunkCache(option.ChunkCacheCountLimit), + chunkCache: chunk_cache.NewChunkCache(option.ChunkCacheCountLimit), } wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs} |
