diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 51070e18..aa4c068c 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -7,7 +7,6 @@ #include "state.hh" #include "build-result.hh" -#include "local-binary-cache-store.hh" #include "s3-binary-cache-store.hh" #include "shared.hh" @@ -771,13 +770,11 @@ void State::run(BuildID buildOne) auto dir = hydraConfig["binary_cache_dir"]; if (dir == "") throw Error("you must set ‘binary_cache_dir’ in hydra.conf"); - auto store = make_ref( + _destStore = openLocalBinaryCacheStore( _localStore, hydraConfig["binary_cache_secret_key_file"], hydraConfig["binary_cache_public_key_file"], dir); - store->init(); - _destStore = std::shared_ptr(store); } else if (storeMode == "s3-binary-cache") {