Skip to content

Commit

Permalink
tiny change
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Oct 8, 2022
1 parent 6b528eb commit 864cc44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/cluster/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ func (c *coordinator) patrolRegions() {
c.checkWaitingRegions()

key, regions = c.checkRegions(key)
if len(regions) == 0 {
continue
}
// Updates the label level isolation statistics.
c.cluster.updateRegionsLabelLevelStats(regions)
if len(key) == 0 {
Expand Down
1 change: 1 addition & 0 deletions tools/pd-simulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func run(simCase string, simConfig *simulator.SimConfig) {

func runMetrics() {
http.Handle("/metrics", promhttp.Handler())
// nolint
http.ListenAndServe(*statusAddress, nil)
}

Expand Down

0 comments on commit 864cc44

Please sign in to comment.