aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r--src/libstore/daemon.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 2e1d10bcc..cc1436f90 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -694,6 +694,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
}
void processConnection(
+ ref<Store> store,
FdSource & from,
FdSink & to,
bool trusted,
@@ -743,12 +744,6 @@ void processConnection(
throw Error("if you run 'nix-daemon' as root, then you MUST set 'build-users-group'!");
#endif
- /* Open the store. */
- Store::Params params; // FIXME: get params from somewhere
- // Disable caching since the client already does that.
- params["path-info-cache-size"] = "0";
- auto store = openStore(settings.storeUri, params);
-
store->createUser(userName, userId);
tunnelLogger->stopWork();