Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <[email protected]>
  • Loading branch information
okJiang committed Dec 27, 2024
1 parent 517c807 commit 9d6034f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/pd_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type InterceptedPDClient struct {
}

func NewInterceptedPDClient(client pd.Client) *InterceptedPDClient {
return &InterceptedPDClient{client.WithCallerComponent("InterceptedPDClient")}
return &InterceptedPDClient{client.WithCallerComponent("intercepted-pd-client")}
}

// interceptedTsFuture is a PD's wrapper future to record stmt detail.
Expand Down Expand Up @@ -129,7 +129,7 @@ func (m InterceptedPDClient) GetRegionByID(ctx context.Context, regionID uint64,
func (m InterceptedPDClient) ScanRegions(ctx context.Context, key, endKey []byte, limit int, opts ...opt.GetRegionOption) ([]*router.Region, error) {
start := time.Now()
//nolint:staticcheck
r, err := m.Client.WithCallerComponent("InterceptedPDClient").ScanRegions(ctx, key, endKey, limit, opts...)
r, err := m.Client.WithCallerComponent("intercepted-pd-client").ScanRegions(ctx, key, endKey, limit, opts...)
recordPDWaitTime(ctx, start)
return r, err
}
Expand Down

0 comments on commit 9d6034f

Please sign in to comment.