Add default to selector list
This commit is contained in:
parent
6070e235eb
commit
ba391e228c
@ -142,6 +142,7 @@ var (
|
|||||||
}
|
}
|
||||||
|
|
||||||
DefaultSelectors = map[string]func(...selector.Option) selector.Selector{
|
DefaultSelectors = map[string]func(...selector.Option) selector.Selector{
|
||||||
|
"default": selector.NewSelector,
|
||||||
"cache": cache.NewSelector,
|
"cache": cache.NewSelector,
|
||||||
"blacklist": blacklist.NewSelector,
|
"blacklist": blacklist.NewSelector,
|
||||||
}
|
}
|
||||||
@ -153,7 +154,7 @@ var (
|
|||||||
// used for default selection as the fall back
|
// used for default selection as the fall back
|
||||||
defaultBroker = "http"
|
defaultBroker = "http"
|
||||||
defaultRegistry = "consul"
|
defaultRegistry = "consul"
|
||||||
defaultSelector = "random"
|
defaultSelector = "default"
|
||||||
defaultTransport = "http"
|
defaultTransport = "http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user