From 71ba250b63e61359a6b712918aa0022e7cff1780 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 5 Jan 2016 22:16:41 +0000 Subject: Update to use new AdHoc::Cache interface --- netfs/fuse/fuseDirs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index c8b5a16..17054d2 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -75,11 +75,11 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_ std::string epath = path + "/" + e; auto asga = volume->begin_getattr(reqEnv(), epath); statCache.add(epath, - [asga,this]() { + StatCache::Factory([asga,this]() { struct stat s; s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup }; return s; - }, time_t(NULL) + 2); + }), time_t(NULL) + 2); } return 0; } -- cgit v1.2.3