@@ -43,22 +43,21 @@ pub enum AgentMetadata {
4343 /// Metadata for an [EC2] instance running on AWS
4444 ///
4545 /// [EC2]: https://aws.amazon.com/ec2
46- #[ cfg_attr ( feature = "__unstable-fargate-cpu-count" , non_exhaustive) ]
46+ #[ non_exhaustive]
4747 Ec2AgentMetadata {
4848 /// The AWS account id
4949 aws_account_id : String ,
5050 /// The AWS region id
5151 aws_region_id : String ,
5252 /// The EC2 instance id
5353 ec2_instance_id : String ,
54- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
5554 /// The EC2 instance type
5655 ec2_instance_type : String ,
5756 } ,
5857 /// Metadata for a [Fargate] task running on AWS.
5958 ///
6059 /// [Fargate]: https://aws.amazon.com/fargate
61- #[ cfg_attr ( feature = "__unstable-fargate-cpu-count" , non_exhaustive) ]
60+ #[ non_exhaustive]
6261 FargateAgentMetadata {
6362 /// The AWS account id
6463 aws_account_id : String ,
@@ -81,14 +80,12 @@ pub enum AgentMetadata {
8180 /// For example, `Some(0.25)`. This will be `None` if the CPU limit is not specified.
8281 ///
8382 /// See the ECS documentation for more details
84- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
8583 cpu_limit : Option < OrderedF64 > ,
8684 /// The memory limit for the Fargate cluster (in megabytes)
8785 ///
8886 /// For example, `Some(2048)`. This will be `None` if the memory limit is not specified.
8987 ///
9088 /// See the ECS documentation for more details
91- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
9289 memory_limit : Option < u64 > ,
9390 } ,
9491 /// Metadata for a host that is neither an EC2 nor a Fargate
@@ -204,7 +201,6 @@ impl Ec2AgentMetadataBuilder {
204201 aws_account_id : self . aws_account_id ,
205202 aws_region_id : self . aws_region_id ,
206203 ec2_instance_id : self . ec2_instance_id ,
207- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
208204 ec2_instance_type : self . ec2_instance_type . unwrap_or_default ( ) ,
209205 }
210206 }
@@ -241,9 +237,7 @@ impl FargateAgentMetadataBuilder {
241237 aws_region_id : self . aws_region_id ,
242238 ecs_task_arn : self . ecs_task_arn ,
243239 ecs_cluster_arn : self . ecs_cluster_arn ,
244- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
245240 cpu_limit : self . cpu_limit . map ( Into :: into) ,
246- #[ cfg( feature = "__unstable-fargate-cpu-count" ) ]
247241 memory_limit : self . memory_limit ,
248242 }
249243 }
0 commit comments