Discovery Nats automate

This commit is contained in:
mr 2024-08-22 13:19:08 +02:00
parent 0bfe87793b
commit c1371bc35c

View File

@ -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)
}