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

@@ -71,7 +71,7 @@ func (r *defaultSelector) Select(service string, opts ...SelectOption) (Next, er
// if there's nothing left, return
if len(services) == 0 {
return nil, ErrNotFound
return nil, ErrNoneAvailable
}
return sopts.Strategy(services), nil