Skip to content

Commit

Permalink
fix: fix issues found by the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nand4011 committed Apr 3, 2024
1 parent 73a4552 commit 4c128fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion momento/src/commands/cloud_linter/dynamodb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub(crate) async fn get_ddb_metadata(
config: &SdkConfig,
limiter: Arc<DefaultDirectRateLimiter>,
) -> Result<Vec<DynamoDbMetadata>, CliError> {
let ddb_client = aws_sdk_dynamodb::Client::new(&config);
let ddb_client = aws_sdk_dynamodb::Client::new(config);

console_info!("Listing Dynamo DB tables");
let table_names = list_table_names(&ddb_client, Arc::clone(&limiter)).await?;
Expand Down
10 changes: 4 additions & 6 deletions momento/src/commands/cloud_linter/elasticache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) async fn get_elasticache_metadata(
limiter: Arc<DefaultDirectRateLimiter>,
) -> Result<Vec<ElastiCacheMetadata>, CliError> {
console_info!("Describing ElastiCache clusters");
let elasticache_client = aws_sdk_elasticache::Client::new(&config);
let elasticache_client = aws_sdk_elasticache::Client::new(config);
list_table_names(&elasticache_client, limiter)
.await?
.into_iter()
Expand Down Expand Up @@ -104,11 +104,9 @@ impl TryFrom<CacheCluster> for ElastiCacheMetadata {
preferred_az,
cluster_mode_enabled: false,
}),
_ => {
return Err(CliError {
msg: format!("Unsupported engine: {}", engine),
})
}
_ => Err(CliError {
msg: format!("Unsupported engine: {}", engine),
}),
}
}
}

0 comments on commit 4c128fc

Please sign in to comment.