mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
getUri should be const and on Store::Config not Store
It is a side-effect property of the configuration alone, not the rest of the store.
This commit is contained in:
parent
f93d25c0e7
commit
0ef6f72c9c
33 changed files with 123 additions and 122 deletions
|
|
@ -25,6 +25,11 @@ std::string SSHStoreConfig::doc()
|
|||
;
|
||||
}
|
||||
|
||||
std::string SSHStoreConfig::getUri() const
|
||||
{
|
||||
return ParsedURL{.scheme = *uriSchemes().begin(), .authority = authority, .query = getQueryParams()}.to_string();
|
||||
}
|
||||
|
||||
struct SSHStore : virtual RemoteStore
|
||||
{
|
||||
using Config = SSHStoreConfig;
|
||||
|
|
@ -41,13 +46,6 @@ struct SSHStore : virtual RemoteStore
|
|||
{
|
||||
}
|
||||
|
||||
std::string getUri() override
|
||||
{
|
||||
return ParsedURL{
|
||||
.scheme = *Config::uriSchemes().begin(), .authority = config->authority, .query = config->getQueryParams()}
|
||||
.to_string();
|
||||
}
|
||||
|
||||
// FIXME extend daemon protocol, move implementation to RemoteStore
|
||||
std::optional<std::string> getBuildLogExact(const StorePath & path) override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue