libstore: processConnection -> processLegacyConnection
Change-Id: I608085c845cce05f4186f83b9ef0d84e8e4a776e
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user