simplify entire world zcount to one call
This commit is contained in:
parent
318ffde050
commit
a74ae46873
3 changed files with 29 additions and 23 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue