refresh our values every run of the loop
This commit is contained in:
parent
1d950179fe
commit
9508a17831
9
main.go
9
main.go
@ -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),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user