From 232ca8fea2cd5a5be679fb21deaf3e32092cf2b5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Mar 2016 17:05:07 +0100 Subject: [PATCH] Fix build --- src/hydra-queue-runner/hydra-queue-runner.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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") {