Skip to content

Commit 72bfcfe

Browse files
committed
fix lint
Signed-off-by: lhy1024 <admin@liudos.us>
1 parent 417c264 commit 72bfcfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/schedule/affinity/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,17 +364,17 @@ func (m *Manager) getCache(region *core.RegionInfo) (*regionCache, *GroupState)
364364
// GetRegionAffinityGroupState returns the affinity group state and isAffinity for a region.
365365
// This is a read-only operation that does not modify cache and we use this for temporary check
366366
func (m *Manager) GetRegionAffinityGroupState(region *core.RegionInfo) (group *GroupState, isAffinity bool) {
367-
return m.getRegionAffinityGroupState(region, false)
367+
return m.doGetRegionAffinity(region, false)
368368
}
369369

370370
// GetAndCacheRegionAffinityGroupState returns the affinity group state and saves it to cache.
371371
// The caller must call InvalidCache() when the region is deleted or merged.
372372
// Currently only used by AffinityChecker.Check.
373373
func (m *Manager) GetAndCacheRegionAffinityGroupState(region *core.RegionInfo) (group *GroupState, isAffinity bool) {
374-
return m.getRegionAffinityGroupState(region, true)
374+
return m.doGetRegionAffinity(region, true)
375375
}
376376

377-
func (m *Manager) getRegionAffinityGroupState(region *core.RegionInfo, saveCache bool) (group *GroupState, isAffinity bool) {
377+
func (m *Manager) doGetRegionAffinity(region *core.RegionInfo, saveCache bool) (group *GroupState, isAffinity bool) {
378378
if region == nil || !m.IsAvailable() {
379379
return nil, false
380380
}

0 commit comments

Comments
 (0)