feat: 并发文件审查,可配置并行度
This commit is contained in:
+5
-2
@@ -39,9 +39,12 @@ func (h *PageHandler) Generate(c *gin.Context) {
|
||||
func (h *PageHandler) Review(c *gin.Context) {
|
||||
topN := "20"
|
||||
h.db.QueryRow(`SELECT value FROM settings WHERE key = 'review.top_n'`).Scan(&topN)
|
||||
concurrency := "5"
|
||||
h.db.QueryRow(`SELECT value FROM settings WHERE key = 'review.concurrency'`).Scan(&concurrency)
|
||||
c.HTML(http.StatusOK, "pages/review.html", gin.H{
|
||||
"ID": c.Param("id"),
|
||||
"TopN": topN,
|
||||
"ID": c.Param("id"),
|
||||
"TopN": topN,
|
||||
"Concurrency": concurrency,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user