include the rpc age in the serialized list

This commit is contained in:
Bryan Stitt 2023-10-24 23:29:23 -07:00
parent 3b0a6d02b9
commit 8d20019b5a

@ -629,7 +629,13 @@ impl Serialize for Web3Rpcs {
let names: Vec<_> = consensus_rpcs
.inner
.iter()
.map(|x| x.name.as_str())
.map(|x| {
format!(
"{} ({}s)",
x.name,
x.created_at.unwrap().elapsed().as_secs_f32()
)
})
.collect();
state.serialize_field("synced_connections", &names)?;