diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:24:33 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:24:33 +0100 |
commit | 559a8c44c3b59c046f4bb0bf049583ff234a095e (patch) | |
tree | 89681485d3cbfee39becc739b460807cb6c36d26 /src/libstore/remote-store.hh | |
parent | 7ff1dca1fad24d0e8dd83172397d952ef6cb4de5 (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.hh | 4 |
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."}; |