unexport Server.LoadNodeID (gorename)

This commit is contained in:
Matt Jaffee 2018-06-27 12:47:09 -05:00
parent 9998eda3d4
commit 8f7cc2fbaa
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -255,7 +255,7 @@ func NewServer(opts ...ServerOption) (*Server, error) {
s.translateFile.PrimaryTranslateStore = s.primaryTranslateStore
// Get or create NodeID.
s.nodeID = s.LoadNodeID()
s.nodeID = s.loadNodeID()
if s.isCoordinator {
s.cluster.Coordinator = s.nodeID
}
@ -357,9 +357,9 @@ func (s *Server) Close() error {
return nil
}
// LoadNodeID gets NodeID from disk, or creates a new value.
// loadNodeID gets NodeID from disk, or creates a new value.
// If server.NodeID is already set, a new ID is not created.
func (s *Server) LoadNodeID() string {
func (s *Server) loadNodeID() string {
if s.nodeID != "" {
return s.nodeID
}