Add a name to the stores

So that it can be printed by `nix describe-stores`
This commit is contained in:
regnat
2020-09-16 13:53:09 +02:00
parent f24f0888f9
commit b73adacc1e
11 changed files with 30 additions and 7 deletions
+2
View File
@@ -10,6 +10,8 @@ MakeError(UploadToHTTP, Error);
struct HttpBinaryCacheStoreConfig : virtual BinaryCacheStoreConfig
{
using BinaryCacheStoreConfig::BinaryCacheStoreConfig;
const std::string name() override { return "Http Binary Cache Store"; }
};
class HttpBinaryCacheStore : public BinaryCacheStore, public HttpBinaryCacheStoreConfig