Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Nov 16, 2023
1 parent fce7646 commit 677c6a3
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 66 deletions.
4 changes: 2 additions & 2 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ type RaftCluster struct {
core *core.BasicCluster // cached cluster info
opt *config.PersistOptions
limiter *StoreLimiter
*SchedulingController
*schedulingController
ruleManager *placement.RuleManager
regionLabeler *labeler.RegionLabeler
replicationMode *replication.ModeManager
Expand Down Expand Up @@ -277,7 +277,7 @@ func (c *RaftCluster) InitCluster(
return err
}
}
c.SchedulingController = NewSchedulingController(c.ctx, c.core, c.opt, c.ruleManager)
c.schedulingController = newSchedulingController(c.ctx, c.core, c.opt, c.ruleManager)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ func newTestRaftCluster(
panic(err)
}
}
rc.SchedulingController = NewSchedulingController(rc.ctx, rc.core, rc.opt, rc.ruleManager)
rc.schedulingController = newSchedulingController(rc.ctx, rc.core, rc.opt, rc.ruleManager)
return rc
}

Expand Down
Loading

0 comments on commit 677c6a3

Please sign in to comment.