libstore: de-callback-ify BinaryCacheStore::getFile

Change-Id: I36b3eb9f645aa04058151e7b2353e15e6f29057b
This commit is contained in:
eldritch horrors
2024-05-09 23:18:05 +02:00
parent 1a002d1a11
commit c77bd88259
3 changed files with 29 additions and 83 deletions
+1 -9
View File
@@ -85,15 +85,7 @@ public:
*/
virtual void getFile(const std::string & path, Sink & sink);
/**
* Fetch the specified file and call the specified callback with
* the result. A subclass may implement this asynchronously.
*/
virtual void getFile(
const std::string & path,
Callback<std::optional<std::string>> callback) noexcept;
std::optional<std::string> getFile(const std::string & path);
virtual std::optional<std::string> getFile(const std::string & path);
public: