diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-06-11 06:23:20 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-06-11 06:23:20 +0000 |
commit | 0270326378ef99bc9990e1c7e20bdfdf77c9973e (patch) | |
tree | 969df19ca43565b77b4c190e59c87e5329073a0f | |
parent | d692df4b28d9e5bde3ff3a7b7e1eb9ec7fde147c (diff) |
Use lambda over closure.
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp b/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp index 590a94c5826..6e1f513407e 100644 --- a/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp +++ b/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp @@ -4,7 +4,6 @@ #include "data_store_file_chunk_stats.h" #include "summaryexceptions.h" #include <vespa/vespalib/util/lambdatask.h> -#include <vespa/vespalib/util/closuretask.h> #include <vespa/vespalib/util/array.hpp> #include <vespa/vespalib/data/fileheader.h> #include <vespa/vespalib/data/databuffer.h> @@ -15,8 +14,6 @@ #include <vespa/log/log.h> LOG_SETUP(".search.writeablefilechunk"); -using vespalib::makeTask; -using vespalib::makeClosure; using vespalib::makeLambdaTask; using vespalib::FileHeader; using vespalib::make_string; @@ -191,7 +188,7 @@ WriteableFileChunk::updateLidMap(const LockGuard &guard, ISetLid &ds, uint64_t s void WriteableFileChunk::restart(uint32_t nextChunkId) { - _executor.execute(makeTask(makeClosure(this, &WriteableFileChunk::fileWriter, nextChunkId))); + _executor.execute(makeLambdaTask([this, nextChunkId] {fileWriter(nextChunkId);})); } namespace { |