Skip to content

Commit

Permalink
fix interface conversion panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Jan 16, 2015
1 parent e86c8f9 commit 8b65621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/proxy/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8b65621

Please sign in to comment.