Replace a few types with more developer-friendly names (#182)

* Replace a few types with more developer-friendly names

* UserPool -> PoolIdentifier
This commit is contained in:
Lev Kokotov
2022-10-01 11:25:59 -06:00
committed by GitHub
parent 24f5eec3ea
commit 7987c5ffad
4 changed files with 49 additions and 20 deletions

View File

@@ -521,11 +521,11 @@ impl Collector {
tokio::time::interval(tokio::time::Duration::from_millis(STAT_PERIOD / 15));
loop {
interval.tick().await;
for ((pool_name, username), _pool) in get_all_pools() {
for (user_pool, _) in get_all_pools() {
let _ = tx.try_send(Event {
name: EventName::UpdateStats {
pool_name,
username,
pool_name: user_pool.db,
username: user_pool.user,
},
value: 0,
});