Skip to content

请问为什么将 Tunnel 处理器的 client id 都替换为了 tunnel id 呢? #615

Answered by ginuerzh
xinghejd asked this question in Q&A
Discussion options

You must be logged in to vote

其中包括limiter、observer,尤其是 limiter,似乎一开始是放在 connect.go 中实现,那个时候是可以取到每次连接的用户 id 的,但是后来似乎关于 tunnel 相关的都放到了 connector 的阶段去实现了,所以都只剩 tunnel id 了,请问这个改动是有什么额外的考量吗?

Tunnel级别相比用户级别控制粒度更精细,且更实用。

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by xinghejd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants