Commit 9fe0b88f authored by LouZhengwei's avatar LouZhengwei Committed by GitHub

fix bug of closing the same channel multiple times

parent 124fb610
...@@ -108,7 +108,6 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate { ...@@ -108,7 +108,6 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate {
for update := range endpointsCh { for update := range endpointsCh {
ch <- update ch <- update
} }
close(ch)
}() }()
return endpointsCh return endpointsCh
} }
...@@ -217,7 +216,6 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate { ...@@ -217,7 +216,6 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
for update := range serviceCh { for update := range serviceCh {
ch <- update ch <- update
} }
close(ch)
}() }()
return serviceCh return serviceCh
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment