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