mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Merge pull request #37454 from xiaolou86/close-channel
Automatic merge from submit-queue fix bug of closing the same channel multiple times <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **Which issue this PR fixes**: fixes #37444 **Release note**:None
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user