From 8b65621aebe22a3d8d5568e28ab2a89d06ebb4cc Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Fri, 16 Jan 2015 12:22:15 -0800 Subject: [PATCH] fix interface conversion panic --- pkg/proxy/config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/proxy/config/config.go b/pkg/proxy/config/config.go index 269a672ec4d..fc275a08bc6 100644 --- a/pkg/proxy/config/config.go +++ b/pkg/proxy/config/config.go @@ -106,8 +106,8 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate { return endpointsCh } -func (c *EndpointsConfig) Config() map[string]map[string]api.Endpoints { - return c.store.MergedState().(map[string]map[string]api.Endpoints) +func (c *EndpointsConfig) Config() []api.Endpoints { + return c.store.MergedState().([]api.Endpoints) } type endpointsStore struct { @@ -201,8 +201,8 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate { return serviceCh } -func (c *ServiceConfig) Config() map[string]map[string]api.Service { - return c.store.MergedState().(map[string]map[string]api.Service) +func (c *ServiceConfig) Config() []api.Service { + return c.store.MergedState().([]api.Service) } type serviceStore struct {