1
0
Fork 0

refactor: add Safe everywhere is needing.

This commit is contained in:
Fernandez Ludovic 2017-07-19 14:11:45 +02:00 committed by Ludovic Fernandez
parent 3174fb8861
commit c36e0b3b06
8 changed files with 30 additions and 19 deletions

View file

@ -52,7 +52,7 @@ func (p *Provider) Provide(configurationChan chan<- types.ConfigMessage, pool *s
}
ticker := time.NewTicker(delay)
go func() {
safe.Go(func() {
for t := range ticker.C {
log.Debug("Refreshing Provider " + t.String())
@ -68,7 +68,7 @@ func (p *Provider) Provide(configurationChan chan<- types.ConfigMessage, pool *s
Configuration: configuration,
}
}
}()
})
return nil
}