File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ use aptos_types::{
1313} ;
1414use aptos_vm:: AptosVM ;
1515use aptos_vm_environment:: prod_configs:: set_paranoid_type_checks;
16- use std:: cmp:: min;
1716
1817/// Error message to display when non-production features are enabled
1918pub const ERROR_MSG_BAD_FEATURE_FLAGS : & str = r#"
@@ -52,10 +51,7 @@ pub fn fetch_chain_id(db: &DbReaderWriter) -> anyhow::Result<ChainId> {
5251pub fn set_aptos_vm_configurations ( node_config : & NodeConfig ) {
5352 set_paranoid_type_checks ( node_config. execution . paranoid_type_verification ) ;
5453 let effective_concurrency_level = if node_config. execution . concurrency_level == 0 {
55- min (
56- DEFAULT_EXECUTION_CONCURRENCY_LEVEL ,
57- ( num_cpus:: get ( ) / 2 ) as u16 ,
58- )
54+ ( ( num_cpus:: get ( ) / 2 ) as u16 ) . clamp ( 1 , DEFAULT_EXECUTION_CONCURRENCY_LEVEL )
5955 } else {
6056 node_config. execution . concurrency_level
6157 } ;
You can’t perform that action at this time.
0 commit comments