From 2f4a1dd6e03f3005e1f11dc98dda2d2d214b1f6f Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 27 Apr 2024 21:24:36 +0200 Subject: libstore: de-callback-ify Store::queryPathInfoUncached Change-Id: I23a156aaff5328f67ca16ccd85c0ea1711b21e35 --- src/libstore/dummy-store.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libstore/dummy-store.cc') diff --git a/src/libstore/dummy-store.cc b/src/libstore/dummy-store.cc index 74d6ed3b5..f1c2b43b1 100644 --- a/src/libstore/dummy-store.cc +++ b/src/libstore/dummy-store.cc @@ -33,10 +33,9 @@ struct DummyStore : public virtual DummyStoreConfig, public virtual Store return *uriSchemes().begin(); } - void queryPathInfoUncached(const StorePath & path, - Callback> callback) noexcept override + std::shared_ptr queryPathInfoUncached(const StorePath & path) override { - callback(nullptr); + return nullptr; } /** -- cgit v1.2.3