diff options
author | eldritch horrors <pennae@lix.systems> | 2024-05-03 21:46:07 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-06-19 10:50:12 +0000 |
commit | 3425e90d76a311c6639b7c040f6a9e14856e18f4 (patch) | |
tree | c5c2f97982ea717c05c4accfb7d922f5e7a1721b /src/libstore/binary-cache-store.hh | |
parent | fed34594d8d6783397a45359b509e05177efd5ab (diff) |
libstore: BinaryCacheStore::getFile{ -> Contents}
if we want have getFile return a source instead of consuming a sink
we'll have to disambiguate this overload another way, eg like this.
Change-Id: Ia26de2020c309a37e7ccc3775c1ad1f32e0a778b
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index 510965d12..cd963fbf9 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -85,7 +85,7 @@ public: */ virtual void getFile(const std::string & path, Sink & sink); - virtual std::optional<std::string> getFile(const std::string & path); + virtual std::optional<std::string> getFileContents(const std::string & path); public: |