Add default to selector list

This commit is contained in:
Asim 2016-05-05 21:14:57 +01:00
parent 6070e235eb
commit ba391e228c

View File

@ -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"
) )