@@ -431,19 +431,6 @@ fd_config_fill( fd_config_t * config,
431431 } \
432432} while(0)
433433
434- FD_FN_CONST static int
435- fd_float_in_range ( float value ,
436- float low ,
437- float high ) {
438- return value >=low && value <=high ;
439- }
440-
441- #define CFG_FLOAT_RANGE_CHECK ( value , low , high ) do { \
442- if( FD_UNLIKELY( !fd_float_in_range( (config->value), (low), (high) ) ) ) { \
443- FD_LOG_ERR(( "`%s` must be in range [%f,%f]", #value, (double)(low), (double)(high) )); \
444- } \
445- } while(0)
446-
447434static void
448435fd_config_validatef ( fd_configf_t const * config ) {
449436 (void )config ;
@@ -536,8 +523,14 @@ fd_config_validate( fd_config_t const * config ) {
536523
537524 CFG_HAS_NON_ZERO ( tiles .gui .gui_listen_port );
538525
539- CFG_FLOAT_RANGE_CHECK ( tiles .bundle .keepalive_interval_seconds , 3.0f , 3600.f );
540- CFG_FLOAT_RANGE_CHECK ( tiles .bundle .request_timeout_seconds , 0.5f , 60.f );
526+ if ( FD_UNLIKELY ( config -> tiles .bundle .keepalive_interval_millis < 3000 &&
527+ config -> tiles .bundle .keepalive_interval_millis > 3600000 ) ) {
528+ FD_LOG_ERR (( "`tiles.bundle.keepalive_interval_millis` must be in range [3000, 3,600,000]" ));
529+ }
530+ if ( FD_UNLIKELY ( config -> tiles .bundle .request_timeout_millis < 500 &&
531+ config -> tiles .bundle .request_timeout_millis > 60000 ) ) {
532+ FD_LOG_ERR (( "`tiles.bundle.request_timeout_millis` must be in range [500, 60,000]" ));
533+ }
541534
542535 CFG_HAS_NON_EMPTY ( development .netns .interface0 );
543536 CFG_HAS_NON_EMPTY ( development .netns .interface0_mac );
0 commit comments