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 Mar 2, 2023
1 parent 9047907 commit f696bce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.go
Expand Up @@ -788,6 +788,9 @@ func (s *Server) StartTimestamp() int64 {

// GetMembers returns PD server list.
func (s *Server) GetMembers() ([]*pdpb.Member, error) {
if s.IsClosed() {
return nil, errs.ErrServerNotStarted.FastGenByArgs()
}
return cluster.GetMembers(s.GetClient())
}

Expand Down

0 comments on commit f696bce

Please sign in to comment.