simplify call to peer
This commit is contained in:
parent
fd730741a4
commit
dd3570fa37
@ -67,7 +67,7 @@ func (a *API) CheckRemotePeer(url string) (State, map[string]int) {
|
||||
caller := NewHTTPCaller(map[string]map[METHOD]string{})
|
||||
var resp APIStatusResponse
|
||||
b, err := caller.CallPost(url, "/status", []string{})
|
||||
fmt.Println("CheckRemotePeer", b, err)
|
||||
fmt.Println("CheckRemotePeer", b, url, err)
|
||||
if err != nil {
|
||||
return DEAD, map[string]int{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user