Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Jan 6, 2020
1 parent 5ce318c commit 193ec3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ type Client interface {
ScatterRegion(ctx context.Context, regionID uint64) error
// GetOperator gets the status of operator of the specified region.
GetOperator(ctx context.Context, regionID uint64) (*pdpb.GetOperatorResponse, error)
// ConfigClient gets the configuration client.
ConfigClient() ConfigClient
// Close closes the client.
Close()
}
Expand Down Expand Up @@ -147,6 +149,10 @@ func NewClientWithContext(ctx context.Context, pdAddrs []string, security Securi
return c, nil
}

func (c *client) ConfigClient() ConfigClient {
return &configClient{c.baseClient}
}

type deadline struct {
timer <-chan time.Time
done chan struct{}
Expand Down

0 comments on commit 193ec3a

Please sign in to comment.