From 9508a178315183328ac67d08da04faaf5d043184 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 23 May 2020 09:56:12 -0600 Subject: [PATCH] refresh our values every run of the loop --- main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 9d44cd3..a86a408 100644 --- a/main.go +++ b/main.go @@ -166,11 +166,12 @@ func main() { }) go func() { - errataCount := 0 - storeCount, _ := store.Get("errata_count") - openbsdRelease, _ := store.Get("openbsd_release") - errataCount, err = strconv.Atoi(storeCount) for { + errataCount := 0 + storeCount, _ := store.Get("errata_count") + openbsdRelease, _ := store.Get("openbsd_release") + errataCount, err = strconv.Atoi(storeCount) + got, err := ParseRemoteErrata( fmt.Sprintf("http://ftp.openbsd.org/pub/OpenBSD/patches/%s/common/", openbsdRelease), )