Skip to content

Commit

Permalink
remove unneeded cache publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku committed Jun 2, 2024
1 parent 223bfc6 commit ad8df29
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/deploy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,25 +183,6 @@ async fn recalculate_score(
.execute(ctx.database.get().await?.deref_mut())
.await?;

// cache will only contain it if it's their best score
if score.completed == 3 {
let mut redis_connection = ctx.redis.get_async_connection().await?;
redis_connection
.publish(
"cache:update_score_pp",
serde_json::json!({
"beatmap_id": score.beatmap_id,
"user_id": score.userid,
"score_id": score.id,
"new_pp": response.pp,
"mode_vn": score.play_mode,
"relax": rx,
})
.to_string(),
)
.await?;
}

log::info!(
score_id = score.id,
score_mode = score.play_mode,
Expand Down

0 comments on commit ad8df29

Please sign in to comment.