cut /rpc/ off

This commit is contained in:
Bryan Stitt 2023-01-25 19:05:11 -08:00
parent b808a72b35
commit f9d3eb1e0d

View File

@ -166,7 +166,13 @@ impl SentrydSubCommand {
// check the main rpc's /health endpoint
{
let url = format!("{}/health", primary_proxy);
let url = if primary_proxy.contains("/rpc/") {
let x = primary_proxy.split("/rpc/").next().unwrap();
format!("{}/health", x)
} else {
format!("{}/health", primary_proxy)
};
let error_sender = error_sender.clone();
// TODO: what timeout?