simplify entire world zcount to one call

This commit is contained in:
41666 2022-11-26 14:37:13 -05:00
parent 318ffde050
commit a74ae46873
3 changed files with 29 additions and 23 deletions

View file

@ -74,6 +74,8 @@ async fn track_pop(pop_event: PopEvent) {
} = pop_event;
let key = format!("wp:{}/{}", world_id, team_id);
let _: () = con.zadd(key, character_id.clone(), timestamp).unwrap();
let key = format!("wp:{}", world_id);
let _: () = con.zadd(key, character_id, timestamp).unwrap();
}