1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

Don't create a Store in processConnection()

This commit is contained in:
Eelco Dolstra 2018-09-25 12:49:20 +02:00
parent 63b99af85a
commit 05819d013f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 14 additions and 8 deletions

View file

@ -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();