aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-19 19:34:47 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-19 19:34:47 +0000
commita83694c7a1212567ec2f032f84c0d72722bcf5ea (patch)
tree23f0a4328094778ab8b309508459192f43f0ca5e /src/libstore/remote-store.hh
parentd5af5763cff2811f6f8c0786c5bf9dd6a61b8669 (diff)
Use `RemoteStore` to open connection for proxying daemon
Removes duplicate websocket opening code, and also means we should be able to to ssh-ssh-... daemon relays, not just uds-uds-... ones.
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r--src/libstore/remote-store.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index 72d2a6689..5ad2dc75b 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -102,8 +102,6 @@ public:
void flushBadConnections();
-protected:
-
struct Connection
{
AutoCloseFD fd;
@@ -119,6 +117,8 @@ protected:
ref<Connection> openConnectionWrapper();
+protected:
+
virtual ref<Connection> openConnection() = 0;
void initConnection(Connection & conn);