Compare commits
No commits in common. "1156e896f79a8c5fee7c0f71ad56f911264a1ca3" and "7fdbcdf3e7388ef6139afb5f55d07483609b9c98" have entirely different histories.
1156e896f7
...
7fdbcdf3e7
|
|
@ -9,7 +9,6 @@ import math
|
||||||
import build
|
import build
|
||||||
import docker
|
import docker
|
||||||
import db
|
import db
|
||||||
import os
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// How many seconds to wait before retrying to update API if failed
|
// How many seconds to wait before retrying to update API if failed
|
||||||
|
|
@ -20,6 +19,7 @@ const (
|
||||||
|
|
||||||
struct ScheduledBuild {
|
struct ScheduledBuild {
|
||||||
pub:
|
pub:
|
||||||
|
repo_id string
|
||||||
repo db.GitRepo
|
repo db.GitRepo
|
||||||
timestamp time.Time
|
timestamp time.Time
|
||||||
}
|
}
|
||||||
|
|
@ -187,10 +187,6 @@ fn (mut d Daemon) renew_repos() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter out any repos that shouldn't run on this architecture
|
|
||||||
cur_arch := os.uname().machine
|
|
||||||
new_repos = new_repos.filter(it.arch.any(it.value == cur_arch))
|
|
||||||
|
|
||||||
d.repos = new_repos
|
d.repos = new_repos
|
||||||
|
|
||||||
d.api_update_timestamp = time.now().add_seconds(60 * d.api_update_frequency)
|
d.api_update_timestamp = time.now().add_seconds(60 * d.api_update_frequency)
|
||||||
|
|
|
||||||
Reference in New Issue