From ef1d0142a056d4441fb6ba8ecb42da833ebb3ba0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 19 Oct 2017 12:11:07 +0200 Subject: [PATCH] Revert "Let's not populate the NAR cache from hydra-queue-runner for now" This reverts commit 908590dc6cfcca3a98755b194d93b2da39aee95c. Since hydra-server can have a different store URI from hydra-queue-runner now, we don't really need this. --- src/libstore/binary-cache-store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 1a565c60b..67607ab3d 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -116,7 +116,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const refnars.emplace(info.path, narAccessor); - //accessor_->addToCache(info.path, *nar); + accessor_->addToCache(info.path, *nar); } std::function recurse; @@ -164,7 +164,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const refnars.emplace(info.path, makeNarAccessor(nar)); - //accessor_->addToCache(info.path, *nar); + accessor_->addToCache(info.path, *nar); } }