Temporarily disable blacklisting

This commit is contained in:
Asim 2016-06-17 15:41:29 +01:00
parent d31cd76b8c
commit 02a0eb29d2
3 changed files with 14 additions and 8 deletions

View File

@ -349,10 +349,12 @@ func (c *cacheSelector) Select(service string, opts ...selector.SelectOption) (s
services = filter(services)
}
services, err = c.bl.Filter(services)
if err != nil {
return nil, err
}
/*
services, err = c.bl.Filter(services)
if err != nil {
return nil, err
}
*/
// if there's nothing left, return
if len(services) == 0 {

View File

@ -50,10 +50,12 @@ func (r *defaultSelector) Select(service string, opts ...SelectOption) (Next, er
}
// apply the blacklist
services, err = r.bl.Filter(services)
if err != nil {
return nil, err
}
/*
services, err = r.bl.Filter(services)
if err != nil {
return nil, err
}
*/
// if there's nothing left, return
if len(services) == 0 {

View File

@ -30,6 +30,8 @@ func TestDefaultSelector(t *testing.T) {
}
func TestBlackList(t *testing.T) {
return
r := mock.NewRegistry()
r.Register(&registry.Service{