mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
Add feature to refresh all feeds from the user interface
This commit is contained in:
parent
480b0d94e2
commit
855fb06bc9
19 changed files with 104 additions and 55 deletions
|
@ -14,9 +14,11 @@ type WorkerPool struct {
|
|||
queue chan model.Job
|
||||
}
|
||||
|
||||
// Push send a job on the queue.
|
||||
func (w *WorkerPool) Push(job model.Job) {
|
||||
w.queue <- job
|
||||
// Push send a list of jobs to the queue.
|
||||
func (w *WorkerPool) Push(jobs model.JobList) {
|
||||
for _, job := range jobs {
|
||||
w.queue <- job
|
||||
}
|
||||
}
|
||||
|
||||
// NewWorkerPool creates a pool of background workers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue