From 6ef3b81a18cc40086c70b1bd069e09321a65c9da Mon Sep 17 00:00:00 2001 From: Asim Date: Tue, 8 Dec 2015 00:08:17 +0000 Subject: [PATCH] move this cruft --- client/client_selector.go | 9 +++++++++ client/node_selector.go | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 client/client_selector.go diff --git a/client/client_selector.go b/client/client_selector.go new file mode 100644 index 00000000..0c0eb616 --- /dev/null +++ b/client/client_selector.go @@ -0,0 +1,9 @@ +package client + +import ( + "github.com/micro/go-micro/registry" +) + +// Selector takes a Registry and returns a NodeSelector. +// Used by the client to initialise a selector. +type Selector func(registry.Registry) NodeSelector diff --git a/client/node_selector.go b/client/node_selector.go index 6ba8ba79..ea2590ad 100644 --- a/client/node_selector.go +++ b/client/node_selector.go @@ -21,10 +21,6 @@ type NodeSelector interface { Reset() } -// Selector takes a Registry and returns a NodeSelector. -// Used by the client to initialise a selector. -type Selector func(registry.Registry) NodeSelector - func init() { rand.Seed(time.Now().UnixNano()) }