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

add trie for route #262

Merged
merged 44 commits into from
Nov 25, 2021
Merged

add trie for route #262

merged 44 commits into from
Nov 25, 2021

Conversation

yqxu
Copy link
Contributor

@yqxu yqxu commented Sep 30, 2021

What this PR does: add trie struct for route request to matched filter

Does this PR introduce a user-facing change?: remove head match for request

@AlexStocks
Copy link
Contributor

IMPORT 使用规范,请教下其他同学。

代码中不要出现中文注释。

@mark4z
Copy link
Member

mark4z commented Oct 3, 2021

Resolve conflicts pls

Comment on lines +46 to +52

const (
Get = "GET"
Put = "PUT"
Post = "POST"
Delete = "DELETE"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using constant defined in the net/http?

@mark4z
Copy link
Member

mark4z commented Oct 30, 2021

The impots format problem can be solved with the tools

@mark4z
Copy link
Member

mark4z commented Oct 30, 2021

The impots format problem can be solved with the tools

https://github.com/dubbogo/tools

key = getTrieKey(method, r.Match.Path, isPrefix)
}
rm.activeConfig.RouteTrie.Put(key, r.Route)
}
Copy link
Member

Choose a reason for hiding this comment

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

resolve it

@ztelur ztelur merged commit 11535b0 into apache:develop Nov 25, 2021
bobtthp pushed a commit to bobtthp/dubbo-go-pixiu that referenced this pull request Dec 12, 2022
* add trie for route

* bug fix

* bug fix

* merge master

* add assert for params

* add assert for params

* a/b should match prefix:a/b

* a/b should match prefix:a/b

* a/b should match prefix:a/b

* a/b should match prefix:a/b

* a/b should match prefix:a/b

* a/b should match prefix:a/b

* merge with master

* merge with master

* merge with master

* merge with master

* merge with master

* merge with master

* merge with master

* review dog

* review dog

* review dog

* review dog

* review dog

* add note

* add note

* add note

* add note

* remove chinese

* update

* remove chinese and fix reviewdog issues

Co-authored-by: yangqing.xyq <yangqing.xyq@gongdao.com>
Co-authored-by: Mark4z <36187602+mark4z@users.noreply.github.com>
Co-authored-by: zhangxun <18721825717@163.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.

7 participants