mirror of
https://github.com/NixOS/nix.git
synced 2025-12-07 01:21:00 +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
|
|
@ -32,6 +32,11 @@ struct DummyStoreConfig : public std::enable_shared_from_this<DummyStoreConfig>,
|
|||
}
|
||||
|
||||
ref<Store> openStore() const override;
|
||||
|
||||
std::string getUri() const override
|
||||
{
|
||||
return *uriSchemes().begin();
|
||||
}
|
||||
};
|
||||
|
||||
struct DummyStore : virtual Store
|
||||
|
|
@ -46,11 +51,6 @@ struct DummyStore : virtual Store
|
|||
{
|
||||
}
|
||||
|
||||
std::string getUri() override
|
||||
{
|
||||
return *Config::uriSchemes().begin();
|
||||
}
|
||||
|
||||
void queryPathInfoUncached(
|
||||
const StorePath & path, Callback<std::shared_ptr<const ValidPathInfo>> callback) noexcept override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue