Skip to content

Commit

Permalink
improve performance of dns mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Sep 26, 2024
1 parent 15b9b9e commit 5eb8b3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ url = "2.5.2"

[dependencies.kentik-api]
git = "ssh://[email protected]/kentik/kentik-api-rust"
rev = "3f241fd4be5082495b47661b344d8fcb0c46a5a3"
rev = "693f0989945f0a39bee4aa2b6f8b24928275ce0a"

[dependencies.kagent]
path = "lib/kagent"
Expand Down
7 changes: 2 additions & 5 deletions src/mode/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ impl Dns {
}
}

fn addr(ip: IpAddr) -> Vec<u8> {
match ip {
IpAddr::V4(ip) => ip.octets().to_vec(),
IpAddr::V6(ip) => ip.octets().to_vec(),
}
fn addr(ip: IpAddr) -> Address {
Address(ip)
}

0 comments on commit 5eb8b3c

Please sign in to comment.