aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/dummy-store.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-04-27 21:24:36 +0200
committereldritch horrors <pennae@lix.systems>2024-05-09 23:18:05 +0200
commit2f4a1dd6e03f3005e1f11dc98dda2d2d214b1f6f (patch)
treea9c0d70d2c4fa611d4c405ec81ac2b8f9c9bf3cf /src/libstore/dummy-store.cc
parentc77bd88259dac6e6b7bcb29425905467aa2ef66f (diff)
libstore: de-callback-ify Store::queryPathInfoUncached
Change-Id: I23a156aaff5328f67ca16ccd85c0ea1711b21e35
Diffstat (limited to 'src/libstore/dummy-store.cc')
-rw-r--r--src/libstore/dummy-store.cc5
1 files changed, 2 insertions, 3 deletions
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<std::shared_ptr<const ValidPathInfo>> callback) noexcept override
+ std::shared_ptr<const ValidPathInfo> queryPathInfoUncached(const StorePath & path) override
{
- callback(nullptr);
+ return nullptr;
}
/**