Skip to content

Commit

Permalink
hydra-queue-runner: Allow multiple concurrent daemon connections
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 6, 2017
1 parent 5810042 commit 426aea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hydra-queue-runner/hydra-queue-runner.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 426aea1

Please sign in to comment.