-
Notifications
You must be signed in to change notification settings - Fork 149
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
plz fix ci problem |
if strings.HasSuffix(ret, constant.PathSlash) { | ||
ret = ret[0 : len(ret)-1] | ||
} | ||
ret = strings.Split(ret, "?")[0] |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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""
)
* 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>
using trie enhance dubbo route.go