diff --git a/cluster/router.go b/cluster/router.go index 7e3fa99bcc825115e17fc157eaeb98f88723a779..a9908dcf9bf3f34d3e7f419e90c319f3694d19e4 100644 --- a/cluster/router.go +++ b/cluster/router.go @@ -25,7 +25,7 @@ import ( // Extension - Router type RouterFactory interface { - GetRouter(common.URL) (Router, error) + Router(common.URL) (Router, error) } type Router interface { diff --git a/cluster/router/router_factory.go b/cluster/router/router_factory.go index 04ff0502cd587f0568dec4e420d34e688619883e..9f4aca2fd75acde55385a4af45a72cbcacdfc6ba 100644 --- a/cluster/router/router_factory.go +++ b/cluster/router/router_factory.go @@ -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) }