Fix the selectors

This commit is contained in:
Asim 2016-01-01 01:29:40 +00:00
parent 0d50b2eb32
commit 210b810096
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ type blackListSelector struct {
}
func init() {
cmd.Selectors["blacklist"] = NewSelector
cmd.DefaultSelectors["blacklist"] = NewSelector
rand.Seed(time.Now().Unix())
}

View File

@ -6,7 +6,7 @@ import (
)
func init() {
cmd.Selectors["random"] = NewSelector
cmd.DefaultSelectors["random"] = NewSelector
}
func NewSelector(opts ...selector.Option) selector.Selector {

View File

@ -13,7 +13,7 @@ type roundRobinSelector struct {
}
func init() {
cmd.Selectors["roundrobin"] = NewSelector
cmd.DefaultSelectors["roundrobin"] = NewSelector
}
func (r *roundRobinSelector) Select(service string, opts ...selector.SelectOption) (selector.Next, error) {