From: Ant Zucaro Date: Tue, 19 Feb 2013 22:29:25 +0000 (-0500) Subject: Only status 200s should be removed from the db. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b3cf2869eedc106fffaad449d6c7923e35f5236;p=xonotic%2Fxonstat.git Only status 200s should be removed from the db. --- diff --git a/xonstat/util/xs_interceptor/xs_interceptor.go b/xonstat/util/xs_interceptor/xs_interceptor.go index ddc8af8..a968c2c 100644 --- a/xonstat/util/xs_interceptor/xs_interceptor.go +++ b/xonstat/util/xs_interceptor/xs_interceptor.go @@ -235,7 +235,9 @@ func resubmit(url string) { fmt.Printf("Request #%d: %s\n", request_id, res.Status) - if res.StatusCode < 500 { + // undeliverables requests will still live in the database, + // but we can clear out the 200 ones for sure + if res.StatusCode == 200 { successfulRequests = append(successfulRequests, request_id) } }