Skip to content

Commit eb67b0d

Browse files
authored
Merge pull request #14142 from NixOS/move-settings-http-store
libstore: Move {narinfo,ls,log}-compression settings from BinaryCache…
2 parents ea14933 + d2017e0 commit eb67b0d

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/libstore/include/nix/store/binary-cache-store.hh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,6 @@ struct BinaryCacheStoreConfig : virtual StoreConfig
5959
The meaning and accepted values depend on the compression method selected.
6060
`-1` specifies that the default compression level should be used.
6161
)"};
62-
63-
const Setting<std::string> narinfoCompression{
64-
this, "", "narinfo-compression", "Compression method for `.narinfo` files."};
65-
66-
const Setting<std::string> lsCompression{this, "", "ls-compression", "Compression method for `.ls` files."};
67-
68-
const Setting<std::string> logCompression{
69-
this,
70-
"",
71-
"log-compression",
72-
R"(
73-
Compression method for `log/*` files. It is recommended to
74-
use a compression method supported by most web browsers
75-
(e.g. `brotli`).
76-
)"};
7762
};
7863

7964
/**

src/libstore/include/nix/store/http-binary-cache-store.hh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ struct HttpBinaryCacheStoreConfig : std::enable_shared_from_this<HttpBinaryCache
1717

1818
ParsedURL cacheUri;
1919

20+
const Setting<std::string> narinfoCompression{
21+
this, "", "narinfo-compression", "Compression method for `.narinfo` files."};
22+
23+
const Setting<std::string> lsCompression{this, "", "ls-compression", "Compression method for `.ls` files."};
24+
25+
const Setting<std::string> logCompression{
26+
this,
27+
"",
28+
"log-compression",
29+
R"(
30+
Compression method for `log/*` files. It is recommended to
31+
use a compression method supported by most web browsers
32+
(e.g. `brotli`).
33+
)"};
34+
2035
static const std::string name()
2136
{
2237
return "HTTP Binary Cache Store";

0 commit comments

Comments
 (0)