Skip to content

Commit 360abf5

Browse files
authored
Run 2 threads for release raft builds (#822)
1 parent c8aa461 commit 360abf5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/common.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,12 @@ else()
386386
set(CONSENSUS_ARG "raft")
387387
endif()
388388

389-
set(WORKER_THREADS 0)
389+
if((NOT CMAKE_BUILD_TYPE STREQUAL "Debug") AND NOT PBFT)
390+
set(WORKER_THREADS 2)
391+
else()
392+
set(WORKER_THREADS 0)
393+
endif()
394+
message(STATUS "Setting default WORKER_THREADS to '${WORKER_THREADS}'")
390395

391396
set(CCF_NETWORK_TEST_ARGS
392397
${TEST_IGNORE_QUOTE}

0 commit comments

Comments
 (0)