Revert "Let's not populate the NAR cache from hydra-queue-runner for now"

This reverts commit 908590dc6c. Since
hydra-server can have a different store URI from hydra-queue-runner
now, we don't really need this.
This commit is contained in:
Eelco Dolstra 2017-10-19 12:11:07 +02:00
parent 908590dc6c
commit ef1d0142a0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -116,7 +116,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const ref<std::str
if (accessor_) {
accessor_->nars.emplace(info.path, narAccessor);
//accessor_->addToCache(info.path, *nar);
accessor_->addToCache(info.path, *nar);
}
std::function<void(const Path &, JSONPlaceholder &)> recurse;
@ -164,7 +164,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const ref<std::str
else {
if (accessor_) {
accessor_->nars.emplace(info.path, makeNarAccessor(nar));
//accessor_->addToCache(info.path, *nar);
accessor_->addToCache(info.path, *nar);
}
}