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 {
for update := range endpointsCh {
ch <- update
}
close(ch)
}()
return endpointsCh
}
......@@ -217,7 +216,6 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
for update := range serviceCh {
ch <- update
}
close(ch)
}()
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