Skip to content

Commit

Permalink
fix: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Sep 26, 2024
1 parent 280d515 commit 69b02fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/statistics/handle/autoanalyze/priorityqueue/queue2.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func NewAnalysisPriorityQueue2(handle statstypes.StatsHandle) *AnalysisPriorityQ
}
}

// IsInitialized checks if the priority queue is initialized.
func (pq *AnalysisPriorityQueueV2) IsInitialized() bool {
return pq.initialized.Load()
}
Expand Down Expand Up @@ -343,6 +344,7 @@ func (pq *AnalysisPriorityQueueV2) setAutoAnalysisTimeWindow(
return nil
}

// IsWithinTimeWindow checks if the current time is within the auto analyze time window.
func (pq *AnalysisPriorityQueueV2) IsWithinTimeWindow() bool {
window := pq.autoAnalysisTimeWindow.Load().(*AutoAnalysisTimeWindow)
return window.IsWithinTimeWindow(time.Now())
Expand Down

0 comments on commit 69b02fa

Please sign in to comment.