File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func (d *DefaultClusterSelector) Init(clusterGroup motan.ClusterGroup) {
2222}
2323
2424func (d * DefaultClusterSelector ) Select (request motan.Request ) motan.Cluster {
25- routeGroup := strings . TrimSpace ( request .GetAttachment (MRouteGroup ) )
25+ routeGroup := request .GetAttachment (MRouteGroup )
2626 if routeGroup != "" {
2727 var sandboxGroup string
2828 var greyGroup string
@@ -32,7 +32,7 @@ func (d *DefaultClusterSelector) Select(request motan.Request) motan.Cluster {
3232 if d .defaultGreyCluster != nil && len (d .defaultGreyCluster .GetRefers ()) > 0 {
3333 greyGroup = d .defaultGreyCluster .GetURL ().Group
3434 }
35- if sandboxGroup != "" && routeGroup == DefaultSandboxRouteGroup {
35+ if sandboxGroup != "" && strings . TrimSpace ( routeGroup ) == DefaultSandboxRouteGroup {
3636 return d .defaultSandboxCluster
3737 }
3838 routeGroupList := motan .TrimSplit (routeGroup , "," )
You can’t perform that action at this time.
0 commit comments