refresh our values every run of the loop
This commit is contained in:
parent
1d950179fe
commit
9508a17831
3
main.go
3
main.go
@ -166,11 +166,12 @@ func main() {
|
||||
})
|
||||
|
||||
go func() {
|
||||
for {
|
||||
errataCount := 0
|
||||
storeCount, _ := store.Get("errata_count")
|
||||
openbsdRelease, _ := store.Get("openbsd_release")
|
||||
errataCount, err = strconv.Atoi(storeCount)
|
||||
for {
|
||||
|
||||
got, err := ParseRemoteErrata(
|
||||
fmt.Sprintf("http://ftp.openbsd.org/pub/OpenBSD/patches/%s/common/", openbsdRelease),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user