Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using trie enhance dubbo route.go #310

Merged
merged 20 commits into from
Dec 19, 2021
Merged

using trie enhance dubbo route.go #310

merged 20 commits into from
Dec 19, 2021

Conversation

yqxu
Copy link
Contributor

@yqxu yqxu commented Nov 29, 2021

using trie enhance dubbo route.go

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2021

Codecov Report

Merging #310 (3d32d22) into develop (81c51fd) will increase coverage by 0.28%.
The diff coverage is 72.28%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #310      +/-   ##
===========================================
+ Coverage    36.52%   36.80%   +0.28%     
===========================================
  Files           54       54              
  Lines         3253     3260       +7     
===========================================
+ Hits          1188     1200      +12     
+ Misses        1945     1937       -8     
- Partials       120      123       +3     
Impacted Files Coverage Δ
pkg/router/route.go 65.78% <69.44%> (-0.88%) ⬇️
pkg/filter/http/apiconfig/api/discovery_service.go 42.42% <75.00%> (+1.01%) ⬆️
pkg/common/router/trie/trie.go 75.40% <100.00%> (+4.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81c51fd...3d32d22. Read the comment docs.

@ztelur
Copy link
Contributor

ztelur commented Dec 1, 2021

plz fix ci problem

if strings.HasSuffix(ret, constant.PathSlash) {
ret = ret[0 : len(ret)-1]
}
ret = strings.Split(ret, "?")[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it better to make "?" as a constant named variable? code in trie.go uses "?" too

)

import (
"github.com/apache/dubbo-go-pixiu/pkg/common/util/stringutil"
"github.com/apache/dubbo-go-pixiu/pkg/logger"
"github.com/pkg/errors"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please split third party import to another import block,like below.

import (
"github.com/apache/dubbo-go-pixiu/pkg/common/util/stringutil"
"github.com/apache/dubbo-go-pixiu/pkg/logger"
)

import (
"github.com/pkg/errors""
)

@ztelur ztelur merged commit eebb7f0 into apache:develop Dec 19, 2021
bobtthp pushed a commit to bobtthp/dubbo-go-pixiu that referenced this pull request Dec 12, 2022
* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

* using trie enhance dubbo route.go

Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
Co-authored-by: randy <ztelur@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants