aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r--src/libstore/remote-store.hh10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index 40f17da30..a08bd3056 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -22,13 +22,13 @@ class RemoteStore : public virtual Store
{
public:
- RemoteStore(const Params & params, size_t maxConnections = std::numeric_limits<size_t>::max());
+ RemoteStore(const Params & params);
/* Implementations of abstract store API methods. */
bool isValidPathUncached(const Path & path) override;
- PathSet queryValidPaths(const PathSet & paths) override;
+ PathSet queryValidPaths(const PathSet & paths, bool maybeSubstitute = false) override;
PathSet queryAllValidPaths() override;
@@ -98,6 +98,8 @@ protected:
void processStderr(Sink * sink = 0, Source * source = 0);
};
+ ref<Connection> openConnectionWrapper();
+
virtual ref<Connection> openConnection() = 0;
void initConnection(Connection & conn);
@@ -106,6 +108,8 @@ protected:
private:
+ std::atomic_bool failed{false};
+
void setOptions(Connection & conn);
};
@@ -113,7 +117,7 @@ class UDSRemoteStore : public LocalFSStore, public RemoteStore
{
public:
- UDSRemoteStore(const Params & params, size_t maxConnections = std::numeric_limits<size_t>::max());
+ UDSRemoteStore(const Params & params);
std::string getUri() override;