Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 committed May 8, 2024
1 parent 9e132ad commit d9dea29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2393,7 +2393,7 @@ impl DnsCache {
}

/// Iterates all ADDR records and remove ones that expired.
/// Returns the record names expired and removed from the cache.
/// Returns the expired ones in a map of names and addresses.
fn evict_expired_addr(&mut self, now: u64) -> HashMap<String, HashSet<IpAddr>> {
let mut removed = HashMap::new();

Expand Down Expand Up @@ -3070,7 +3070,7 @@ mod tests {
}

#[test]
fn test_hostname_address_removed() {
fn test_hostname_resolution_address_removed() {
// Create a mDNS server
let server = ServiceDaemon::new().expect("Failed to create server");
let hostname = "addr_remove_host._tcp.local.";
Expand Down

0 comments on commit d9dea29

Please sign in to comment.