Skip to content

Commit

Permalink
Revert "Temporarily remove the routers until fixed (#2718)"
Browse files Browse the repository at this point in the history
This reverts commit ee3d011.
  • Loading branch information
chickenlj committed Jul 29, 2024
1 parent 8747aa9 commit a3fe848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions cluster/router/condition/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ package condition

import (
"dubbo.apache.org/dubbo-go/v3/cluster/router"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
)

func init() {
// TODO(finalt) Temporarily removed until fixed
//extension.SetRouterFactory(constant.ConditionServiceRouterFactoryKey, NewServiceConditionRouterFactory)
//extension.SetRouterFactory(constant.ConditionAppRouterFactoryKey, NewAppConditionRouterFactory)
extension.SetRouterFactory(constant.ConditionServiceRouterFactoryKey, NewServiceConditionRouterFactory)
extension.SetRouterFactory(constant.ConditionAppRouterFactoryKey, NewAppConditionRouterFactory)
}

// ServiceRouteFactory router factory
Expand Down
5 changes: 3 additions & 2 deletions cluster/router/tag/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package tag

import (
"dubbo.apache.org/dubbo-go/v3/cluster/router"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
)

func init() {
Expand All @@ -27,8 +29,7 @@ func init() {
and cause warning if config center is empty.
User can import this package and config config center to use tag router.
*/
// TODO(finalt) Temporarily removed until fixed
//extension.SetRouterFactory(constant.TagRouterFactoryKey, NewTagRouterFactory)
extension.SetRouterFactory(constant.TagRouterFactoryKey, NewTagRouterFactory)
}

// RouteFactory router factory
Expand Down

0 comments on commit a3fe848

Please sign in to comment.