Use ErrNoneAvailable and test blacklisting

This commit is contained in:
Asim
2016-05-07 00:04:08 +01:00
parent 63c6e82192
commit 75f2706fd0
4 changed files with 84 additions and 6 deletions

View File

@@ -356,7 +356,7 @@ func (c *cacheSelector) Select(service string, opts ...selector.SelectOption) (s
// if there's nothing left, return
if len(services) == 0 {
return nil, selector.ErrNotFound
return nil, selector.ErrNoneAvailable
}
return sopts.Strategy(services), nil