Fix compile error
This commit is contained in:
parent
0a4484b406
commit
818d500f98
@ -26,8 +26,6 @@ import (
|
|||||||
"github.com/micro/go-micro/selector"
|
"github.com/micro/go-micro/selector"
|
||||||
"github.com/micro/go-micro/selector/blacklist"
|
"github.com/micro/go-micro/selector/blacklist"
|
||||||
"github.com/micro/go-micro/selector/cache"
|
"github.com/micro/go-micro/selector/cache"
|
||||||
"github.com/micro/go-micro/selector/random"
|
|
||||||
"github.com/micro/go-micro/selector/roundrobin"
|
|
||||||
|
|
||||||
// transports
|
// transports
|
||||||
"github.com/micro/go-micro/transport"
|
"github.com/micro/go-micro/transport"
|
||||||
@ -119,7 +117,7 @@ var (
|
|||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "selector",
|
Name: "selector",
|
||||||
EnvVar: "MICRO_SELECTOR",
|
EnvVar: "MICRO_SELECTOR",
|
||||||
Usage: "Selector used to pick nodes for querying. random, roundrobin, blacklist",
|
Usage: "Selector used to pick nodes for querying",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "transport",
|
Name: "transport",
|
||||||
@ -145,8 +143,6 @@ var (
|
|||||||
|
|
||||||
DefaultSelectors = map[string]func(...selector.Option) selector.Selector{
|
DefaultSelectors = map[string]func(...selector.Option) selector.Selector{
|
||||||
"cache": cache.NewSelector,
|
"cache": cache.NewSelector,
|
||||||
"random": random.NewSelector,
|
|
||||||
"roundrobin": roundrobin.NewSelector,
|
|
||||||
"blacklist": blacklist.NewSelector,
|
"blacklist": blacklist.NewSelector,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user