Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
add missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Sep 25, 2020
1 parent 4c1b788 commit 2bed923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/backup/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *testBackup) SetUpSuite(c *C) {
mvccStore := mocktikv.MustNewMVCCStore()
r.mockPDClient = mocktikv.NewPDClient(mocktikv.NewCluster(mvccStore))
r.ctx, r.cancel = context.WithCancel(context.Background())
mockMgr := &conn.Mgr{}
mockMgr := &conn.Mgr{PdController: &conn.PdController{}}
mockMgr.SetPDClient(r.mockPDClient)
mockMgr.SetPDHTTP([]string{"test"}, nil)
var err error
Expand Down
3 changes: 2 additions & 1 deletion pkg/conn/pd.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type PdController struct {
pdClient pd.Client
}

// NewPdController creates a new PdController.
func NewPdController(
ctx context.Context,
pdAddrs string,
Expand Down Expand Up @@ -144,7 +145,7 @@ func NewPdController(
}

return &PdController{
addrs: addrs,
addrs: processedAddrs,
cli: cli,
pdClient: pdClient,
}, nil
Expand Down

0 comments on commit 2bed923

Please sign in to comment.