Discovery Nats automate
This commit is contained in:
parent
0bfe87793b
commit
c1371bc35c
@ -65,6 +65,9 @@ func (a *API) CheckRemotePeer(url string) State {
|
||||
return DEAD
|
||||
}
|
||||
json.Unmarshal(b, &resp)
|
||||
if resp.Data == nil {
|
||||
return DEAD
|
||||
}
|
||||
return ToState(resp.Data.State)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user