chore: rename db module to avoid conflict with vlib

This commit is contained in:
Jef Roosens 2023-02-08 11:09:18 +01:00
parent b3a119f221
commit 91a976c634
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
19 changed files with 15 additions and 17 deletions

View file

@ -143,7 +143,7 @@ pub fn (mut q BuildJobQueue) peek(arch string) ?BuildJob {
}
q.pop_invalid(arch)
job := q.queues[arch].peek()?
job := q.queues[arch].peek() or { return none }
if job.timestamp < time.now() {
return job
@ -162,10 +162,10 @@ pub fn (mut q BuildJobQueue) pop(arch string) ?BuildJob {
}
q.pop_invalid(arch)
mut job := q.queues[arch].peek()?
mut job := q.queues[arch].peek() or { return none }
if job.timestamp < time.now() {
job = q.queues[arch].pop()?
job = q.queues[arch].pop() or { return none }
if !job.single {
q.reschedule(job, arch)