diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-07-25 19:23:10 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-07-25 19:23:10 -0400 |
| commit | a2e2df7c0f97633bba3a91981c4c1598a062aaac (patch) | |
| tree | cabee0ef8f1c7dc9cfcf7bf6f730703060a94499 /src/ec2.rs | |
| parent | 2996d2b6268a320fafc512fcbee03a1b6182c521 (diff) | |
Further naming cleanup
Diffstat (limited to 'src/ec2.rs')
| -rw-r--r-- | src/ec2.rs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -14,7 +14,7 @@ pub trait Ec2 { fn ec2(&self) -> &ec2::Client; } -pub async fn instance_recordsets<C>( +pub async fn instance_proposal<C>( aws_context: &C, asg_name: &str, dns_name: &Name, @@ -70,17 +70,17 @@ where } let dns_name = dns_name.to_ascii(); - let ip4_recordset = host_recordset(&dns_name, dns_ttl, RrType::A, ip4)?; - let ip6_recordset = host_recordset(&dns_name, dns_ttl, RrType::Aaaa, ip6)?; + let ip4_proposal = host_proposal(&dns_name, dns_ttl, RrType::A, ip4)?; + let ip6_proposal = host_proposal(&dns_name, dns_ttl, RrType::Aaaa, ip6)?; - Ok(ip4_recordset + Ok(ip4_proposal .into_iter() - .chain(ip6_recordset.into_iter()) + .chain(ip6_proposal.into_iter()) .map(Hashable::from) .collect()) } -fn host_recordset( +fn host_proposal( dns_name: &str, dns_ttl: i64, rr_type: RrType, |
