@@ -17,11 +17,11 @@ use std::net::{IpAddr, SocketAddr};
1717use std:: str:: FromStr ;
1818use std:: time:: Duration ;
1919
20- use anyhow:: { Context , bail } ;
20+ use anyhow:: { bail , Context } ;
2121use bytesize:: ByteSize ;
2222use http:: HeaderMap ;
2323use quickwit_common:: fs:: get_disk_size;
24- use quickwit_common:: net:: { Host , find_private_ip, get_short_hostname} ;
24+ use quickwit_common:: net:: { find_private_ip, get_short_hostname, Host } ;
2525use quickwit_common:: new_coolid;
2626use quickwit_common:: uri:: Uri ;
2727use quickwit_proto:: types:: NodeId ;
@@ -35,8 +35,8 @@ use crate::service::QuickwitService;
3535use crate :: storage_config:: StorageConfigs ;
3636use crate :: templating:: render_config;
3737use crate :: {
38- ConfigFormat , IndexerConfig , IngestApiConfig , JaegerConfig , MetastoreConfigs , NodeConfig ,
39- SearcherConfig , TlsConfig , validate_identifier , validate_node_id ,
38+ validate_identifier , validate_node_id , ConfigFormat , IndexerConfig , IngestApiConfig ,
39+ JaegerConfig , MetastoreConfigs , NodeConfig , SearcherConfig , TlsConfig ,
4040} ;
4141
4242pub const DEFAULT_CLUSTER_ID : & str = "quickwit-default-cluster" ;
@@ -679,6 +679,7 @@ mod tests {
679679 JaegerConfig {
680680 enable_endpoint: true ,
681681 lookback_period_hours: NonZeroU64 :: new( 24 ) . unwrap( ) ,
682+ lookback_period_traces_hours: NonZeroU64 :: new( 24 ) . unwrap( ) ,
682683 max_trace_duration_secs: NonZeroU64 :: new( 600 ) . unwrap( ) ,
683684 max_fetch_spans: NonZeroU64 :: new( 1_000 ) . unwrap( ) ,
684685 }
@@ -718,10 +719,8 @@ mod tests {
718719 )
719720 . await
720721 . unwrap_err ( ) ;
721- assert ! (
722- format!( "{parsing_error:?}" )
723- . contains( "unknown field `max_num_concurrent_split_searches_with_typo`" )
724- ) ;
722+ assert ! ( format!( "{parsing_error:?}" )
723+ . contains( "unknown field `max_num_concurrent_split_searches_with_typo`" ) ) ;
725724 }
726725
727726 #[ tokio:: test]
@@ -1058,15 +1057,13 @@ mod tests {
10581057 node_id: 1
10591058 metastore_uri: ''
10601059 "# ;
1061- assert ! (
1062- load_node_config_with_env(
1063- ConfigFormat :: Yaml ,
1064- config_yaml. as_bytes( ) ,
1065- & Default :: default ( )
1066- )
1067- . await
1068- . is_err( )
1069- ) ;
1060+ assert ! ( load_node_config_with_env(
1061+ ConfigFormat :: Yaml ,
1062+ config_yaml. as_bytes( ) ,
1063+ & Default :: default ( )
1064+ )
1065+ . await
1066+ . is_err( ) ) ;
10701067 }
10711068 {
10721069 let config_yaml = r#"
@@ -1075,15 +1072,13 @@ mod tests {
10751072 metastore_uri: postgres://username:password@host:port/db
10761073 default_index_root_uri: ''
10771074 "# ;
1078- assert ! (
1079- load_node_config_with_env(
1080- ConfigFormat :: Yaml ,
1081- config_yaml. as_bytes( ) ,
1082- & Default :: default ( )
1083- )
1084- . await
1085- . is_err( )
1086- ) ;
1075+ assert ! ( load_node_config_with_env(
1076+ ConfigFormat :: Yaml ,
1077+ config_yaml. as_bytes( ) ,
1078+ & Default :: default ( )
1079+ )
1080+ . await
1081+ . is_err( ) ) ;
10871082 }
10881083 }
10891084
@@ -1163,11 +1158,9 @@ mod tests {
11631158 max_trace_duration_secs: 0
11641159 "# ;
11651160 let error = serde_yaml:: from_str :: < JaegerConfig > ( jaeger_config_yaml) . unwrap_err ( ) ;
1166- assert ! (
1167- error
1168- . to_string( )
1169- . contains( "max_trace_duration_secs: invalid value: integer `0`" )
1170- )
1161+ assert ! ( error
1162+ . to_string( )
1163+ . contains( "max_trace_duration_secs: invalid value: integer `0`" ) )
11711164 }
11721165
11731166 #[ tokio:: test]
0 commit comments