mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +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
|
|
@ -23,6 +23,11 @@ std::string LocalBinaryCacheStoreConfig::doc()
|
|||
;
|
||||
}
|
||||
|
||||
std::string LocalBinaryCacheStoreConfig::getUri() const
|
||||
{
|
||||
return "file://" + binaryCacheDir;
|
||||
}
|
||||
|
||||
struct LocalBinaryCacheStore : virtual BinaryCacheStore
|
||||
{
|
||||
using Config = LocalBinaryCacheStoreConfig;
|
||||
|
|
@ -38,11 +43,6 @@ struct LocalBinaryCacheStore : virtual BinaryCacheStore
|
|||
|
||||
void init() override;
|
||||
|
||||
std::string getUri() override
|
||||
{
|
||||
return "file://" + config->binaryCacheDir;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
bool fileExists(const std::string & path) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue