Discovery Nats automate
This commit is contained in:
parent
b77d003238
commit
e69e13d8da
@ -60,7 +60,7 @@ func (a *API) CheckRemotePeer(url string) State {
|
|||||||
// Check if the database is up
|
// Check if the database is up
|
||||||
caller := NewHTTPCaller(map[string]map[METHOD]string{})
|
caller := NewHTTPCaller(map[string]map[METHOD]string{})
|
||||||
var resp APIStatusResponse
|
var resp APIStatusResponse
|
||||||
b, err := caller.CallPost(url, "/peer/status", []string{})
|
b, err := caller.CallPost(url, "/status", []string{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return DEAD
|
return DEAD
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user