diff --git a/selector/blacklist/black_list_selector.go b/selector/blacklist/black_list_selector.go index 3769c0a4..689710f6 100644 --- a/selector/blacklist/black_list_selector.go +++ b/selector/blacklist/black_list_selector.go @@ -27,7 +27,7 @@ type blackListSelector struct { } func init() { - cmd.Selectors["blacklist"] = NewSelector + cmd.DefaultSelectors["blacklist"] = NewSelector rand.Seed(time.Now().Unix()) } diff --git a/selector/random/random.go b/selector/random/random.go index 57e325cc..a0fcefbd 100644 --- a/selector/random/random.go +++ b/selector/random/random.go @@ -6,7 +6,7 @@ import ( ) func init() { - cmd.Selectors["random"] = NewSelector + cmd.DefaultSelectors["random"] = NewSelector } func NewSelector(opts ...selector.Option) selector.Selector { diff --git a/selector/roundrobin/round_robin_selector.go b/selector/roundrobin/round_robin_selector.go index 48a89874..7ee019dd 100644 --- a/selector/roundrobin/round_robin_selector.go +++ b/selector/roundrobin/round_robin_selector.go @@ -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) {