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")
400
-
.exec(&client_cmd_tx)
401
-
.await;
402
-
403
-
let(sites_info, sub_hps) = match sites {
404
-
Ok(sites) => {
405
-
if sites
406
-
.get("_meta")
407
-
.map(RpcValue::as_map)
408
-
.and_then(|map| map.get("HP3"))
409
-
.map(RpcValue::as_map)
410
-
.and_then(|map| map.get("type"))
411
-
.map(RpcValue::as_str)
412
-
.is_none_or(|type_str| type_str != "HP3")
413
-
{
414
-
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.");
log::error!("Cannot find sub HP for site {path}");
424
-
site_info.sub_hp = path.clone();
399
+
let(sites_info, sub_hps) = 'sites_get_loop:loop{
400
+
let sites:Result<shvproto::Map, _> = RpcCall::new("sites","getSites")
401
+
.exec(&client_cmd_tx)
402
+
.await;
403
+
404
+
match sites {
405
+
Ok(sites) => {
406
+
if sites
407
+
.get("_meta")
408
+
.map(RpcValue::as_map)
409
+
.and_then(|map| map.get("HP3"))
410
+
.map(RpcValue::as_map)
411
+
.and_then(|map| map.get("type"))
412
+
.map(RpcValue::as_str)
413
+
.is_none_or(|type_str| type_str != "HP3")
414
+
{
415
+
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