various: replace silent error discards with logged warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I465d760b5330980270b64b4a89abc09f6a6a6964
This commit is contained in:
parent
9bbc1754d9
commit
38ed7faee2
7 changed files with 147 additions and 40 deletions
|
|
@ -60,12 +60,15 @@ async fn create_channel(
|
|||
fc_common::repo::evaluations::get_latest(&state.pool, jobset_id).await
|
||||
{
|
||||
if eval.status == fc_common::models::EvaluationStatus::Completed {
|
||||
let _ = fc_common::repo::channels::auto_promote_if_complete(
|
||||
if let Err(e) = fc_common::repo::channels::auto_promote_if_complete(
|
||||
&state.pool,
|
||||
jobset_id,
|
||||
eval.id,
|
||||
)
|
||||
.await;
|
||||
.await
|
||||
{
|
||||
tracing::warn!(jobset_id = %jobset_id, "Failed to auto-promote channel: {e}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -176,10 +176,9 @@ pub fn router(state: AppState, config: &ServerConfig) -> Router {
|
|||
));
|
||||
|
||||
// Add rate limiting if configured
|
||||
if let (Some(rps), Some(burst)) =
|
||||
if let (Some(_rps), Some(burst)) =
|
||||
(config.rate_limit_rps, config.rate_limit_burst)
|
||||
{
|
||||
let _ = rps; // rate_limit_rps reserved for future use
|
||||
let rl_state = Arc::new(RateLimitState {
|
||||
requests: DashMap::new(),
|
||||
burst,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue