libstore/remote-store: avoid old-style casting for maxConnections
Type-checking works better this way as (type) style casting is too permissive.
This commit is contained in:
@@ -28,7 +28,7 @@ RemoteStore::RemoteStore(const Params & params)
|
||||
: RemoteStoreConfig(params)
|
||||
, Store(params)
|
||||
, connections(make_ref<Pool<Connection>>(
|
||||
std::max(1, (int) maxConnections),
|
||||
std::max(1, maxConnections.get()),
|
||||
[this]() {
|
||||
auto conn = openConnectionWrapper();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user