return error if unable to connect
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m54s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m54s
This commit is contained in:
@@ -378,6 +378,7 @@ func (p *SyncedPool) AddRemote(host string) error {
|
||||
client, err := Dial(fmt.Sprintf("%s:1338", host))
|
||||
if err != nil {
|
||||
log.Printf("Error connecting to remote %s: %v\n", host, err)
|
||||
return err
|
||||
}
|
||||
_, err = client.Call(Ping, Pong, []byte{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user