Skip to content

Commit 3b1e23a

Browse files
committed
libstore/remote-store: avoid old-style casting for maxConnections
Type-checking works better this way as (type) style casting is too permissive.
1 parent 3b0b2fd commit 3b1e23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstore/remote-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RemoteStore::RemoteStore(const Params & params)
2828
: RemoteStoreConfig(params)
2929
, Store(params)
3030
, connections(make_ref<Pool<Connection>>(
31-
std::max(1, (int) maxConnections),
31+
std::max(1, maxConnections.get()),
3232
[this]() {
3333
auto conn = openConnectionWrapper();
3434
try {

0 commit comments

Comments
 (0)