Use goroutine pool in throttleProvider
This commit is contained in:
parent
b1e3444798
commit
d88263dbf9
2 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue