fix errors from last yolo-commit

This commit is contained in:
Brandon Thomas committed 2022-11-13 17:37:12 -05:00
1 parent a211d45f26
commit 2d2a0b68ff
4 files changed
+6 -6

No files matched your search

@@ -48,8 +48,8 @@ where sample.is_generated_on_prem IS TRUE;
cloud_count: sample_size_wide.saturating_sub(result.on_prem_count),
},
Err(sqlx::Error::RowNotFound) => NO_RESULTS_SENTINEL.clone(),
Err(_) => {
warn!("get on prem worker stats error: {:?}", err);
Err(e) => {
warn!("get on prem worker stats error: {:?}", e);
return Err(anyhow!("couldn't fetch on prem worker stats"));
}
};
@@ -39,8 +39,8 @@ SELECT public_count, all_count FROM (
let result : VoiceStats = match maybe_result {
Ok(result) => result,
Err(sqlx::Error::RowNotFound) => NO_RESULTS_SENTINEL.clone(),
Err(_) => {
warn!("get voice count stats error: {:?}", err);
Err(e) => {
warn!("get voice count stats error: {:?}", e);
return Err(anyhow!("couldn't fetch voice count stats"));
}
};
@@ -95,7 +95,7 @@ pub async fn get_on_prem_worker_stats_handler(
)
.await
.map_err(|e| {
return Err(GetOnPremWorkerStatsError::ServerError)
GetOnPremWorkerStatsError::ServerError
})?;
let response = GetOnPremWorkerStatsResponse {
@@ -82,7 +82,7 @@ pub async fn get_voice_count_stats_handler(
let result = get_voice_count_stats(&server_state.mysql_pool)
.await
.map_err(|e| {
return Err(GetVoiceCountStatsError::ServerError)
GetVoiceCountStatsError::ServerError
})?;
let response = GetVoiceCountStatsResponse {