name
This commit is contained in:
@@ -83,9 +83,9 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, d Discovery) (*Synced
|
||||
remoteIndex: make(map[CartId]*RemoteGrainPool),
|
||||
}
|
||||
if d != nil {
|
||||
cartPurge := time.NewTicker(time.Minute)
|
||||
discoveryTimer := time.NewTicker(time.Second * 5)
|
||||
go func() {
|
||||
<-cartPurge.C
|
||||
<-discoveryTimer.C
|
||||
hosts, err := d.Discover()
|
||||
if err != nil {
|
||||
log.Printf("Error discovering hosts: %v\n", err)
|
||||
|
||||
Reference in New Issue
Block a user