forked from vieter-v/vieter
chore: please the linter
This commit is contained in:
parent
5cbfc0ebcb
commit
03f2240ff6
6 changed files with 7 additions and 6 deletions
|
|
@ -2,10 +2,8 @@ module server
|
|||
|
||||
import web
|
||||
import web.response { new_data_response, new_response }
|
||||
// import os
|
||||
// import util
|
||||
// import models { BuildLog, BuildLogFilter }
|
||||
|
||||
// v1_poll_job_queue allows agents to poll for new build jobs.
|
||||
['/api/v1/jobs/poll'; auth; get]
|
||||
fn (mut app App) v1_poll_job_queue() web.Result {
|
||||
arch := app.query['arch'] or {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ pub mut:
|
|||
db db.VieterDb
|
||||
}
|
||||
|
||||
// init_job_queue populates a fresh job queue with all the targets currently
|
||||
// stored in the database.
|
||||
fn (mut app App) init_job_queue() ! {
|
||||
// Initialize build queues
|
||||
mut targets := app.db.get_targets(limit: 25)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue