cut /rpc/ off
This commit is contained in:
parent
b808a72b35
commit
f9d3eb1e0d
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user