Skip to content

Commit

Permalink
create new storage for resource manager
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Jan 31, 2023
1 parent a20e53c commit c83465f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,6 @@ func (s *Server) GetHTTPClient() *http.Client {
return s.httpClient
}

// GetFinalPathWithinPD returns the etcd path.
func (s *Server) GetFinalPathWithinPD(configPath string) string {
return strings.Join([]string{s.rootPath, configPath}, "/")
}

// GetLeader returns the leader of PD cluster(i.e the PD leader).
func (s *Server) GetLeader() *pdpb.Member {
return s.member.GetLeader()
Expand Down
2 changes: 1 addition & 1 deletion tests/client/global_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (suite *globalConfigTestSuite) TearDownSuite() {
}

func (suite *globalConfigTestSuite) GetEtcdPath(configPath string) string {
return suite.server.GetFinalPathWithinPD(globalConfigPath + configPath)
return globalConfigPath + configPath
}

func (suite *globalConfigTestSuite) TestLoad() {
Expand Down

0 comments on commit c83465f

Please sign in to comment.