Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar
Commits
3b565572
Commit
3b565572
authored
Dec 06, 2021
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed route bug
parent
e7971c4e
Pipeline
#8341
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
router.go
internal/router/router.go
+2
-2
No files found.
internal/router/router.go
View file @
3b565572
...
...
@@ -189,7 +189,6 @@ func (r *router) Route(msg *pb.Message) error {
return
err
}
case
pb
.
Message_IBTP_GET
:
case
pb
.
Message_IBTP_RECEIPT_GET
:
default
:
return
nil
...
...
@@ -198,7 +197,7 @@ func (r *router) Route(msg *pb.Message) error {
default
:
return
nil
}
}
}
else
{
// 规则判断 转发给其它的sidecar节点
method
:=
strings
.
ToLower
(
ibtpx
.
RouteMethod
)
if
md
,
is
:=
r
.
methodMap
[
method
];
is
{
...
...
@@ -212,6 +211,7 @@ func (r *router) Route(msg *pb.Message) error {
}
else
{
r
.
firstRoute
(
msg
)
}
}
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment