From 426aea1236ca424cfac60ffc6e4dd18aba13e6e0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Apr 2017 18:50:53 +0200 Subject: [PATCH] hydra-queue-runner: Allow multiple concurrent daemon connections --- src/hydra-queue-runner/hydra-queue-runner.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 1898a0e5..21d1be52 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -779,7 +779,9 @@ void State::run(BuildID buildOne) if (!lock) throw Error("hydra-queue-runner is already running"); - localStore = openStore(); + Store::Params localParams; + localParams["max-connections"] = "16"; + localStore = openStore(getEnv("NIX_REMOTE"), localParams); auto storeUri = config->getStrOption("store_uri"); _destStore = storeUri == "" ? localStore : openStore(storeUri);