Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 7, 2024
1 parent 938d095 commit 4b9f052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coordinator/impl/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func (c *coordinator) handleClusterConfigUpdated() error {
}

for _, sc := range c.shardControllers {
sc.SyncServerInfo()
sc.SyncServerAddress()
}

c.ClusterConfig = newClusterConfig
Expand Down
6 changes: 3 additions & 3 deletions coordinator/impl/shard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type ShardController interface {

HandleNodeFailure(failedNode model.ServerAddress)

SyncServerInfo()
SyncServerAddress()

SwapNode(from model.ServerAddress, to model.ServerAddress) error
DeleteShard()
Expand Down Expand Up @@ -141,7 +141,7 @@ func NewShardController(namespace string, shard int64, namespaceConfig *model.Na

s.ctx, s.cancel = context.WithCancel(context.Background())

s.SyncServerInfo()
s.SyncServerAddress()

s.log.Info(
"Started shard controller",
Expand Down Expand Up @@ -890,7 +890,7 @@ func (s *shardController) waitForFollowersToCatchUp(ctx context.Context, leader
return nil
}

func (s *shardController) SyncServerInfo() {
func (s *shardController) SyncServerAddress() {
s.shardMetadataMutex.RLock()
exist := false
for _, candidate := range s.shardMetadata.Ensemble {
Expand Down

0 comments on commit 4b9f052

Please sign in to comment.