diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-22 14:15:35 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-09-22 14:15:35 +0200 |
commit | d8c10028d96d49b2c783fe279daa91402e8a91da (patch) | |
tree | 3747fc06a677a6a8cb2d1ba1486a34a0f26bf868 /src/libstore/s3-binary-cache-store.cc | |
parent | 8fdb1d057ac72d07b9e8c6e522d4d7f0a8bdf352 (diff) |
Make setDefault() typed
Diffstat (limited to 'src/libstore/s3-binary-cache-store.cc')
-rw-r--r-- | src/libstore/s3-binary-cache-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 51d86c4e6..7accad7f4 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -232,8 +232,8 @@ struct S3BinaryCacheStoreImpl : virtual S3BinaryCacheStoreConfig, public virtual void init() override { if (auto cacheInfo = diskCache->cacheExists(getUri())) { - wantMassQuery.setDefault(cacheInfo->wantMassQuery ? "true" : "false"); - priority.setDefault(fmt("%d", cacheInfo->priority)); + wantMassQuery.setDefault(cacheInfo->wantMassQuery); + priority.setDefault(cacheInfo->priority); } else { BinaryCacheStore::init(); diskCache->createCache(getUri(), storeDir, wantMassQuery, priority); |