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