libstore: processConnection -> processLegacyConnection

Change-Id: I608085c845cce05f4186f83b9ef0d84e8e4a776e
This commit is contained in:
eldritch horrors
2026-05-05 12:02:47 +00:00
parent 7edb421e1b
commit af4d064be7
3 changed files with 8 additions and 15 deletions
+3 -6
View File
@@ -857,12 +857,9 @@ static void performOp(AsyncIoRoot & aio, TunnelLogger * logger, ref<Store> store
}
}
void processConnection(
AsyncIoRoot & aio,
ref<Store> store,
FdSource & from,
FdSink & to,
TrustedFlag trusted)
void processLegacyConnection(
AsyncIoRoot & aio, ref<Store> store, FdSource & from, FdSink & to, TrustedFlag trusted
)
{
auto monitor = std::make_unique<MonitorFdHup>(from.fd);
+3 -7
View File
@@ -7,11 +7,7 @@
namespace nix::daemon {
void processConnection(
AsyncIoRoot & aio,
ref<Store> store,
FdSource & from,
FdSink & to,
TrustedFlag trusted);
void processLegacyConnection(
AsyncIoRoot & aio, ref<Store> store, FdSource & from, FdSink & to, TrustedFlag trusted
);
}
+2 -2
View File
@@ -530,7 +530,7 @@ static void daemonInstance(
case daemon::Protocol::LEGACY: {
FdSource from(connectionFd);
FdSink to(connectionFd);
processConnection(aio, store, from, to, trusted);
processLegacyConnection(aio, store, from, to, trusted);
break;
}
}
@@ -578,7 +578,7 @@ processStdioConnection(AsyncIoRoot & aio, ref<Store> store, TrustedFlag trustCli
{
FdSource from(STDIN_FILENO);
FdSink to(STDOUT_FILENO);
processConnection(aio, store, from, to, trustClient);
processLegacyConnection(aio, store, from, to, trustClient);
}
/**