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:
parent
63b99af85a
commit
05819d013f
3 changed files with 14 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue