fix(typo): typos corrected typ to typo
All checks were successful
/ build (push) Successful in 1s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-only-test) (push) Successful in 7s
/ check (module-ipv4-test) (push) Successful in 7s
/ check (module-ipv6-only-test) (push) Successful in 7s
/ check (module-ipv6-test) (push) Successful in 7s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 2s
All checks were successful
/ build (push) Successful in 1s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-only-test) (push) Successful in 7s
/ check (module-ipv4-test) (push) Successful in 7s
/ check (module-ipv6-only-test) (push) Successful in 7s
/ check (module-ipv6-test) (push) Successful in 7s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 2s
This is wrong for us (we use typ instead of type, not typo, because type is a rust keyword).
This commit is contained in:
parent
42482574ac
commit
f16c3b9138
1 changed files with 4 additions and 4 deletions
|
@ -37,14 +37,14 @@ impl std::fmt::Display for Action<'_> {
|
||||||
match self {
|
match self {
|
||||||
Action::Reassign { domain, to, ttl } => {
|
Action::Reassign { domain, to, ttl } => {
|
||||||
let ttl = ttl.as_secs();
|
let ttl = ttl.as_secs();
|
||||||
let typ = match to {
|
let kind = match to {
|
||||||
IpAddr::V4(_) => "A",
|
IpAddr::V4(_) => "A",
|
||||||
IpAddr::V6(_) => "AAAA",
|
IpAddr::V6(_) => "AAAA",
|
||||||
};
|
};
|
||||||
// Delete previous record of type `typ`
|
// Delete previous record of type `kind`
|
||||||
writeln!(f, "update delete {domain} {ttl} IN {typ}")?;
|
writeln!(f, "update delete {domain} {ttl} IN {kind}")?;
|
||||||
// Add record with new IP
|
// Add record with new IP
|
||||||
writeln!(f, "update add {domain} {ttl} IN {typ} {to}")
|
writeln!(f, "update add {domain} {ttl} IN {kind} {to}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue