File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,12 @@ impl DnsClient {
117117 // Exclude the first length byte from the string result
118118 Some ( String :: from_utf8_lossy ( & txt[ 1 ..=len] ) . to_string ( ) )
119119 } )
120+ . inspect_err ( |e| {
121+ warn ! (
122+ target: LOG_TARGET ,
123+ "Failed to parse DNS TXT record. Error: {}" , e
124+ ) ;
125+ } )
120126 . transpose ( )
121127 } )
122128 . collect :: < Result < _ , DnsClientError > > ( ) ?;
Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ mod test {
236236 #[ tokio:: test]
237237 #[ ignore = "Useful for developer testing but will fail unless the DNS has TXT records setup correctly." ]
238238 async fn it_returns_seeds_from_real_address ( ) {
239- let mut resolver = DnsSeedResolver :: connect ( DnsNameServer :: System ) . await . unwrap ( ) ;
240- let seeds = resolver. resolve ( "seeds.esmeralda .tari.com" ) . await . unwrap ( ) ;
239+ let mut resolver = DnsSeedResolver :: connect ( DnsNameServer :: System ) . unwrap ( ) ;
240+ let seeds = resolver. resolve ( "seeds.nextnet .tari.com" ) . await . unwrap ( ) ;
241241 println ! ( "{:?}" , seeds) ;
242242 assert ! ( !seeds. is_empty( ) ) ;
243243 }
You can’t perform that action at this time.
0 commit comments