From 9fe0b88f922c0c6eeece23b929c8ce3d778d4389 Mon Sep 17 00:00:00 2001 From: LouZhengwei Date: Thu, 24 Nov 2016 23:41:48 +0800 Subject: [PATCH] fix bug of closing the same channel multiple times --- pkg/proxy/config/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/proxy/config/config.go b/pkg/proxy/config/config.go index 9f5bbd3fa2a..1ab5e3d6633 100644 --- a/pkg/proxy/config/config.go +++ b/pkg/proxy/config/config.go @@ -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 }