tikv / pd

Placement driver for TiKV
Apache License 2.0
1.05k stars 724 forks source link

grpc/service: Refactor middleware #8849

Open okJiang opened 20 hours ago

okJiang commented 20 hours ago

What problem does this PR solve?

Issue Number: Close https://github.com/tikv/pd/issues/8850

What is changed and how does it work?

Organize the middleware code and handle them centrally.

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 20 hours ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign cabinfeverb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/tikv/pd/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment