Skip to content

Commit

Permalink
Merge branch 'refactor' of https://github.com/niclabs/dns-rust into r…
Browse files Browse the repository at this point in the history
…efactor
  • Loading branch information
Litr0 committed Nov 2, 2023
2 parents b77b143 + 74f0e19 commit b8a2410
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/resolver/async_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ mod async_resolver_test {
use crate::resolver::resolver_error::ResolverError;
use super::AsyncResolver;

//TODO: test constructor

//TODO: test inner_lookup


#[ignore]
#[tokio::test]
async fn lookup_ip() {
Expand Down Expand Up @@ -185,4 +190,15 @@ mod async_resolver_test {
}


//TODO: test max number of retry

//TODO: use UDP

//TODO: use TCP

//TODO: use UDP but fails and use TCP

//TODO: diferent types of errors

//TODO: bad domain name written
}
2 changes: 2 additions & 0 deletions src/resolver/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ pub async fn lookup_stub( //FIXME: podemos ponerle de nombre lookup_strategy y
let mut future_query = referenced_query.lock().unwrap();
*future_query = future::ready(Ok(response)).boxed();

//FIXME: increase counter

println!("[LOOKUP STUB] return");

}
Expand Down

0 comments on commit b8a2410

Please sign in to comment.