mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Unexport Topology.AddID
This commit is contained in:
parent
5709d329d5
commit
3f7f82bf05
1 changed files with 3 additions and 3 deletions
|
|
@ -323,7 +323,7 @@ func (c *cluster) addNode(node *Node) error {
|
|||
if c.Topology == nil {
|
||||
return fmt.Errorf("Cluster.Topology is nil")
|
||||
}
|
||||
if !c.Topology.AddID(node.ID) {
|
||||
if !c.Topology.addID(node.ID) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -1429,8 +1429,8 @@ func (t *Topology) positionByID(nodeID string) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
// AddID adds the node ID to the topology and returns true if added.
|
||||
func (t *Topology) AddID(nodeID string) bool {
|
||||
// addID adds the node ID to the topology and returns true if added.
|
||||
func (t *Topology) addID(nodeID string) bool {
|
||||
t.mu.Lock()
|
||||
defer t.mu.Unlock()
|
||||
if t.containsID(nodeID) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue