optimize(hz): sort route strictly which preventing sorting inconsistencies #921
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
optimize
Check the PR title.
(Optional) Translate the PR title into Chinese.
对路由进行严格排序,防止生成代码出现大量的 diff
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en: Strict ordering of routes to prevent generating code with lots of diffs
zh(optional): 对路由进行严格排序,防止生成的路由代码出现由于顺序带来的 diff
之前的路由在排序的时候漏掉三个case:
本 pr 的修改不会影响路由注册的逻辑,但是会使得之前生成的路由代码的顺序发生改变(在idl的method特别多的时候表现明显)。
在这个问题修好之后,以后所以的 idl 都不会对 router 带来diff(除了加路由)
(Optional) Which issue(s) this PR fixes:
(Optional) The PR that updates user documentation: