Syntactic fixes

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Théophane Hufschmitt 2021-02-04 11:12:24 +01:00
parent 87c8d3d702
commit 93d9eb78a0
2 changed files with 2 additions and 2 deletions

View file

@ -787,7 +787,7 @@ std::optional<BasicDerivation> Derivation::tryResolve(Store& store, const StoreP
// This is quite dirty and leaky, but will disappear once #4340 is merged // This is quite dirty and leaky, but will disappear once #4340 is merged
static Sync<std::map<StorePath, std::optional<Derivation>>> resolutionsCache; static Sync<std::map<StorePath, std::optional<Derivation>>> resolutionsCache;
debug("Trying to resolve %s", store.printStorePath(drvPath)); debug("trying to resolve %s", store.printStorePath(drvPath));
{ {
auto resolutions = resolutionsCache.lock(); auto resolutions = resolutionsCache.lock();

View file

@ -883,7 +883,7 @@ StorePathSet LocalStore::queryValidDerivers(const StorePath & path)
std::map<std::string, std::optional<StorePath>> std::map<std::string, std::optional<StorePath>>
LocalStore::queryPartialDerivationOutputMap(const StorePath& path_) LocalStore::queryPartialDerivationOutputMap(const StorePath & path_)
{ {
auto path = path_; auto path = path_;
auto outputs = retrySQLite<std::map<std::string, std::optional<StorePath>>>([&]() { auto outputs = retrySQLite<std::map<std::string, std::optional<StorePath>>>([&]() {