Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: shirly <AndreMouche@126.com>
  • Loading branch information
AndreMouche committed Jun 15, 2022
1 parent bedecdd commit d94e80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/schedule/filter/candidates.go
Expand Up @@ -79,7 +79,7 @@ func (c *StoreCandidates) KeepTheTopStores(cmp StoreComparer, asc bool) *StoreCa
}

// PickTheTopStore returns the first store order by asc.
// It returns the min item when asc is true, return the max item when asc is false.
// It returns the min item when asc is true, returns the max item when asc is false.
func (c *StoreCandidates) PickTheTopStore(cmp StoreComparer, asc bool) *core.StoreInfo {
if len(c.Stores) == 0 {
return nil
Expand Down

0 comments on commit d94e80a

Please sign in to comment.