You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let sites:Result<shvproto::Map, _> = RpcCall::new("sites","getSites")
402
402
.exec(&client_cmd_tx)
403
403
.await;
404
404
405
405
let(sites_info, sub_hps) = match sites {
406
406
Ok(sites) => {
407
+
eprintln!("sites = '{:?}'", sites);
408
+
if sites
409
+
.get("_meta")
410
+
.map(RpcValue::as_map)
411
+
.and_then(|map| map.get("HP3"))
412
+
.map(RpcValue::as_map)
413
+
.and_then(|map| map.get("type"))
414
+
.map(RpcValue::as_str)
415
+
.is_none_or(|type_str| type_str != "HP3")
416
+
{
417
+
eprintln!("This site's _meta does NOT include an HP3 node. Refusing to continue. Add an HP3 node to the site's _meta, otherwise this HP instance will not be visible to parent HPs.");
0 commit comments