From 81ea8bd5ceb3dcae6af0b79c81a39ecbf2ba97a8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Mar 2018 22:16:01 +0200 Subject: Simplify the callback mechanism --- src/libstore/binary-cache-store.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libstore/binary-cache-store.hh') diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index e20b96844..fcde666be 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -41,8 +41,7 @@ public: /* Return the contents of the specified file, or null if it doesn't exist. */ virtual void getFile(const std::string & path, - std::function)> success, - std::function failure) = 0; + Callback> callback) = 0; std::shared_ptr getFile(const std::string & path); @@ -71,8 +70,7 @@ public: { unsupported(); } void queryPathInfoUncached(const Path & path, - std::function)> success, - std::function failure) override; + Callback> callback) override; void queryReferrers(const Path & path, PathSet & referrers) override -- cgit v1.2.3