···57575858/// infromation about a host hydrant is consuming from.
5959pub struct Host {
6060+ /// hostname of the host.
6061 pub name: SmolStr,
6262+ /// latest seq hydrant has processed from this host.
6163 pub seq: i64,
6464+ /// the amount of accounts hydrant has seen from this host.
6565+ pub account_count: u64,
6266}
63676468/// an event emitted by the hydrant event stream.
···789793 .into_diagnostic()
790794 .wrap_err("cursor value is not 8 bytes")?,
791795 );
796796+ let account_count = state
797797+ .db
798798+ .get_count_sync(&keys::pds_account_count_key(&hostname));
792799793800 Ok(Some(Host {
794801 name: hostname.into(),
795802 seq,
803803+ account_count,
796804 }))
797805 })
798806 .await
···839847 .into_diagnostic()
840848 .wrap_err("cursor value is not 8 bytes")?,
841849 );
850850+ let account_count = state
851851+ .db
852852+ .get_count_sync(&keys::pds_account_count_key(hostname));
842853 hosts.push(Host {
843854 name: hostname.into(),
844855 seq,
856856+ account_count,
845857 });
846858 }
847859