summaryrefslogtreecommitdiff
path: root/src/autoscaling.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-07-30 10:55:10 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-07-30 11:01:37 -0400
commitf2fab018711f42440b323975794fd87b191af841 (patch)
treef9204b0469914a2b13a9fd30e540e8ccd3769d05 /src/autoscaling.rs
parent99844e6c49d9c3195a32f239c027a48412c92252 (diff)
Replace `hashable` with a more to-purpose wrapper type.
Diffstat (limited to 'src/autoscaling.rs')
-rw-r--r--src/autoscaling.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/autoscaling.rs b/src/autoscaling.rs
index 79ac2b0..c43f116 100644
--- a/src/autoscaling.rs
+++ b/src/autoscaling.rs
@@ -3,11 +3,9 @@ use std::collections::HashSet;
use anyhow::{anyhow, bail, Result};
use aws_sdk_autoscaling as autoscaling;
use aws_sdk_autoscaling::types::{AutoScalingGroup, Instance, LifecycleState};
-use aws_sdk_route53::types::ResourceRecordSet;
use crate::ec2::{asg_instances_proposal, Ec2};
-use crate::hashable::Hashable;
-use crate::route53::Target;
+use crate::route53::{ResourceRecordSet, Target};
pub trait AutoScaling {
fn autoscaling(&self) -> &autoscaling::Client;
@@ -17,7 +15,7 @@ pub async fn propose_asg_recordsets<C>(
aws_context: &C,
target: &Target,
asg_name: &str,
-) -> Result<HashSet<Hashable<ResourceRecordSet>>>
+) -> Result<HashSet<ResourceRecordSet>>
where
C: AutoScaling + Ec2,
{