mirror of
https://github.com/traefik/traefik.git
synced 2025-09-29 09:41:14 +02:00
Close ring buffer used in throttling function.
This commit is contained in:
parent
a9d38570ab
commit
4387cf38d7
@ -374,6 +374,7 @@ func (s *Server) preLoadConfiguration(configMsg types.ConfigMessage) {
|
|||||||
// it will publish the last of the newly received configurations.
|
// it will publish the last of the newly received configurations.
|
||||||
func throttleProviderConfigReload(throttle time.Duration, publish chan<- types.ConfigMessage, in <-chan types.ConfigMessage, stop chan bool) {
|
func throttleProviderConfigReload(throttle time.Duration, publish chan<- types.ConfigMessage, in <-chan types.ConfigMessage, stop chan bool) {
|
||||||
ring := channels.NewRingChannel(1)
|
ring := channels.NewRingChannel(1)
|
||||||
|
defer ring.Close()
|
||||||
|
|
||||||
safe.Go(func() {
|
safe.Go(func() {
|
||||||
for {
|
for {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user