aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 05:24:33 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 05:24:33 +0100
commit559a8c44c3b59c046f4bb0bf049583ff234a095e (patch)
tree89681485d3cbfee39becc739b460807cb6c36d26 /src/libstore/remote-store.hh
parent7ff1dca1fad24d0e8dd83172397d952ef6cb4de5 (diff)
Merge pull request #6258 from obsidiansystems/gcc-bug-ergonomics
Remove bug-avoiding `StoreConfig *` casts for settings (cherry picked from commit e3febfcd532adb23ca05ac465a2b907d6f1a3529) Change-Id: Ifeae276582fdbc781a38581df9de3da67a7e7bf9
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r--src/libstore/remote-store.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index a1ae82a0f..f0985fdc1 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -22,10 +22,10 @@ struct RemoteStoreConfig : virtual StoreConfig
{
using StoreConfig::StoreConfig;
- const Setting<int> maxConnections{(StoreConfig*) this, 1, "max-connections",
+ const Setting<int> maxConnections{this, 1, "max-connections",
"Maximum number of concurrent connections to the Nix daemon."};
- const Setting<unsigned int> maxConnectionAge{(StoreConfig*) this,
+ const Setting<unsigned int> maxConnectionAge{this,
std::numeric_limits<unsigned int>::max(),
"max-connection-age",
"Maximum age of a connection before it is closed."};