diff options
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, |
