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

change RouterFactory method name

parent 9b1eeab7
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment