Rewrite to use a single socket

This commit is contained in:
Ulf Lilleengen
2023-02-10 17:43:23 +01:00
parent 614740a1b2
commit cd440a49d6
4 changed files with 133 additions and 79 deletions

View File

@ -71,8 +71,7 @@ async fn main_task(spawner: Spawner) {
spawner.spawn(net_task(stack)).unwrap();
// Then we can use it!
let mut socket = DnsSocket::new(stack, vec![]);
let socket = DnsSocket::new(stack);
let host = "example.com";
info!("querying host {:?}...", host);