Skip to content
Snippets Groups Projects
Commit 782dec4c authored by aliiohs's avatar aliiohs
Browse files

change RouterFactory method name

parent e99bfad3
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ import (
// Extension - Router
type RouterFactory interface {
GetRouter(common.URL) (Router, error)
Router(common.URL) (Router, error)
}
type Router interface {
......
......@@ -16,6 +16,6 @@ type ConditionRouterFactory struct {
func NewConditionRouterFactory() cluster.RouterFactory {
return ConditionRouterFactory{}
}
func (c ConditionRouterFactory) GetRouter(url common.URL) (cluster.Router, error) {
func (c ConditionRouterFactory) Router(url common.URL) (cluster.Router, error) {
return newConditionRouter(url)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment