@@ -15,7 +15,6 @@ import (
1515 "github.com/Masterminds/cookoo"
1616 "github.com/Masterminds/cookoo/log"
1717 "github.com/Masterminds/cookoo/safely"
18-
1918 "github.com/coreos/go-etcd/etcd"
2019)
2120
@@ -327,7 +326,6 @@ func genSSHKeys(c cookoo.Context) error {
327326// - client (Setter): The client to use to write the data to etcd.
328327// - sshPid (int): The PID for SSHD. If SSHD dies, this stops notifying.
329328func UpdateHostPort (c cookoo.Context , p * cookoo.Params ) (interface {}, cookoo.Interrupt ) {
330-
331329 base := p .Get ("base" , "" ).(string )
332330 host := p .Get ("host" , "" ).(string )
333331 port := p .Get ("port" , "" ).(string )
@@ -405,7 +403,6 @@ func MakeDir(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
405403 }
406404
407405 return res , nil
408-
409406}
410407
411408// Watch watches a given path, and executes a git check-repos for each event.
@@ -511,7 +508,6 @@ func Watch(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
511508//
512509// It adds configurable number of retries and configurable timesouts.
513510func checkRetry (c * etcd.Cluster , numReqs int , last http.Response , err error ) error {
514-
515511 if numReqs > retryCycles * len (c .Machines ) {
516512 return fmt .Errorf ("Tried and failed %d cluster connections: %s" , retryCycles , err )
517513 }
0 commit comments