mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Move uriSchemes
to *StoreConfig
It is a property of the configuration of a store --- how a store URL is parsed into a store config, not a store itself. Progress towards #10766
This commit is contained in:
parent
57399bfc0e
commit
2aa9cf34dd
14 changed files with 50 additions and 39 deletions
|
@ -47,8 +47,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
static std::set<std::string> uriSchemes() { return {"ssh-ng"}; }
|
||||
|
||||
std::string getUri() override
|
||||
{
|
||||
return *uriSchemes().begin() + "://" + host;
|
||||
|
@ -154,11 +152,6 @@ public:
|
|||
};
|
||||
}
|
||||
|
||||
static std::set<std::string> uriSchemes()
|
||||
{
|
||||
return {"mounted-ssh-ng"};
|
||||
}
|
||||
|
||||
std::string getUri() override
|
||||
{
|
||||
return *uriSchemes().begin() + "://" + host;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue