1
0
Fork 0

Use goroutine pool in throttleProvider

This commit is contained in:
SALLEYRON Julien 2018-03-15 10:54:03 +01:00 committed by Traefiker Bot
parent b1e3444798
commit d88263dbf9
2 changed files with 7 additions and 4 deletions

View file

@ -297,7 +297,10 @@ func TestThrottleProviderConfigReload(t *testing.T) {
stop <- true
}()
go throttleProviderConfigReload(throttleDuration, publishConfig, providerConfig, stop)
globalConfig := configuration.GlobalConfiguration{}
server := NewServer(globalConfig)
go server.throttleProviderConfigReload(throttleDuration, publishConfig, providerConfig, stop)
publishedConfigCount := 0
stopConsumeConfigs := make(chan bool)