diff options
author | regnat <rg@regnat.ovh> | 2020-09-11 11:11:05 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-09-16 13:53:09 +0200 |
commit | 7f103dcddd4cf3c0748b7a379a117f3262c4c5f7 (patch) | |
tree | 7288d4b6552bb45be7c0dfa1e985340769e2f114 /src/libstore/remote-store.hh | |
parent | 5895184df44e86ae55270390402c8263b0f24ae2 (diff) |
Properly filter the stores according to their declared uriSchemes
When opening a store, only try the stores whose `uriSchemes()` include
the current one
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r-- | src/libstore/remote-store.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh index 32daab59a..cceb8d185 100644 --- a/src/libstore/remote-store.hh +++ b/src/libstore/remote-store.hh @@ -165,11 +165,11 @@ class UDSRemoteStore : public LocalFSStore, public RemoteStore, public virtual U public: UDSRemoteStore(const Params & params); - UDSRemoteStore(std::string path, const Params & params); + UDSRemoteStore(const std::string scheme, std::string path, const Params & params); std::string getUri() override; - static std::vector<std::string> uriPrefixes() + static std::set<std::string> uriSchemes() { return {"unix"}; } bool sameMachine() override |