From 210b81009607c7787da29151d378ccb032fded88 Mon Sep 17 00:00:00 2001 From: Asim Date: Fri, 1 Jan 2016 01:29:40 +0000 Subject: [PATCH] Fix the selectors --- selector/blacklist/black_list_selector.go | 2 +- selector/random/random.go | 2 +- selector/roundrobin/round_robin_selector.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {