Skip to content
Snippets Groups Projects
Commit 39b22ab5 authored by aliiohs's avatar aliiohs
Browse files

change RouterFactory method name

parent be4b8370
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
// Extension - Router // Extension - Router
type RouterFactory interface { type RouterFactory interface {
GetRouter(common.URL) (Router, error) Router(common.URL) (Router, error)
} }
type Router interface { type Router interface {
......
...@@ -16,6 +16,6 @@ type ConditionRouterFactory struct { ...@@ -16,6 +16,6 @@ type ConditionRouterFactory struct {
func NewConditionRouterFactory() cluster.RouterFactory { func NewConditionRouterFactory() cluster.RouterFactory {
return ConditionRouterFactory{} 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) return newConditionRouter(url)
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment