refresh our values every run of the loop

This commit is contained in:
Aaron Bieber 2020-05-23 09:56:12 -06:00
parent 1d950179fe
commit 9508a17831

View File

@ -166,11 +166,12 @@ func main() {
}) })
go func() { go func() {
errataCount := 0
storeCount, _ := store.Get("errata_count")
openbsdRelease, _ := store.Get("openbsd_release")
errataCount, err = strconv.Atoi(storeCount)
for { for {
errataCount := 0
storeCount, _ := store.Get("errata_count")
openbsdRelease, _ := store.Get("openbsd_release")
errataCount, err = strconv.Atoi(storeCount)
got, err := ParseRemoteErrata( got, err := ParseRemoteErrata(
fmt.Sprintf("http://ftp.openbsd.org/pub/OpenBSD/patches/%s/common/", openbsdRelease), fmt.Sprintf("http://ftp.openbsd.org/pub/OpenBSD/patches/%s/common/", openbsdRelease),
) )