Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei committed May 30, 2024
1 parent 4a38124 commit b6b1f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/autoanalyze/refresher/refresher.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (r *Refresher) PickOneTableAndAnalyzeByPriority() bool {
jobChan := make(chan priorityqueue.AnalysisJob, 1)
concurrency := min(1, max(runtime.GOMAXPROCS(0)/8, 4))
stopChan := time.After(5 * time.Second)
worker := NewWorker(r.statsHandle, r.sysProcTracker, jobChan, concurrency)
worker := newWorker(r.statsHandle, r.sysProcTracker, jobChan, concurrency)
// Pick the table with the highest weight
JOBLOOP:
for r.Jobs.Len() > 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/statistics/handle/autoanalyze/refresher/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type worker struct {
jobCnt atomic.Int64
}

func NewWorker(statsHandle statstypes.StatsHandle, sysProcTracker sysproctrack.Tracker, jobChan chan priorityqueue.AnalysisJob, concurrency int) *worker {
func newWorker(statsHandle statstypes.StatsHandle, sysProcTracker sysproctrack.Tracker, jobChan chan priorityqueue.AnalysisJob, concurrency int) *worker {
result := &worker{
statsHandle: statsHandle,
sysProcTracker: sysProcTracker,
Expand Down

0 comments on commit b6b1f73

Please sign in to comment.