Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
78cd7cfb
Commit
78cd7cfb
authored
5 years ago
by
Xin.Zh
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #160 from xujianhai666/feat-remove-ineffassign
remove ineffassign
parents
45679662
893322b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cluster/cluster_impl/failback_cluster_invoker.go
+0
-2
0 additions, 2 deletions
cluster/cluster_impl/failback_cluster_invoker.go
cluster/cluster_impl/failsafe_cluster_invoker.go
+0
-1
0 additions, 1 deletion
cluster/cluster_impl/failsafe_cluster_invoker.go
with
0 additions
and
3 deletions
cluster/cluster_impl/failback_cluster_invoker.go
+
0
−
2
View file @
78cd7cfb
...
@@ -131,7 +131,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
...
@@ -131,7 +131,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
return
&
protocol
.
RPCResult
{}
return
&
protocol
.
RPCResult
{}
}
}
url
:=
invokers
[
0
]
.
GetUrl
()
url
:=
invokers
[
0
]
.
GetUrl
()
methodName
:=
invocation
.
MethodName
()
methodName
:=
invocation
.
MethodName
()
//Get the service loadbalance config
//Get the service loadbalance config
lb
:=
url
.
GetParam
(
constant
.
LOADBALANCE_KEY
,
constant
.
DEFAULT_LOADBALANCE
)
lb
:=
url
.
GetParam
(
constant
.
LOADBALANCE_KEY
,
constant
.
DEFAULT_LOADBALANCE
)
...
@@ -146,7 +145,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
...
@@ -146,7 +145,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
var
result
protocol
.
Result
var
result
protocol
.
Result
ivk
:=
invoker
.
doSelect
(
loadbalance
,
invocation
,
invokers
,
invoked
)
ivk
:=
invoker
.
doSelect
(
loadbalance
,
invocation
,
invokers
,
invoked
)
invoked
=
append
(
invoked
,
ivk
)
//DO INVOKE
//DO INVOKE
result
=
ivk
.
Invoke
(
invocation
)
result
=
ivk
.
Invoke
(
invocation
)
if
result
.
Error
()
!=
nil
{
if
result
.
Error
()
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
cluster/cluster_impl/failsafe_cluster_invoker.go
+
0
−
1
View file @
78cd7cfb
...
@@ -64,7 +64,6 @@ func (invoker *failsafeClusterInvoker) Invoke(invocation protocol.Invocation) pr
...
@@ -64,7 +64,6 @@ func (invoker *failsafeClusterInvoker) Invoke(invocation protocol.Invocation) pr
var
result
protocol
.
Result
var
result
protocol
.
Result
ivk
:=
invoker
.
doSelect
(
loadbalance
,
invocation
,
invokers
,
invoked
)
ivk
:=
invoker
.
doSelect
(
loadbalance
,
invocation
,
invokers
,
invoked
)
invoked
=
append
(
invoked
,
ivk
)
//DO INVOKE
//DO INVOKE
result
=
ivk
.
Invoke
(
invocation
)
result
=
ivk
.
Invoke
(
invocation
)
if
result
.
Error
()
!=
nil
{
if
result
.
Error
()
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment