]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Only status 200s should be removed from the db.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 19 Feb 2013 22:29:25 +0000 (17:29 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 19 Feb 2013 22:29:25 +0000 (17:29 -0500)
xonstat/util/xs_interceptor/xs_interceptor.go

index ddc8af80488c738c85cc9f9600155151db1bc1fa..a968c2c7ecd12ecd75ac9cd1b68b6a062c61f471 100644 (file)
@@ -235,7 +235,9 @@ func resubmit(url string) {
 \r
                fmt.Printf("Request #%d: %s\n", request_id, res.Status)\r
 \r
-               if res.StatusCode < 500 {\r
+    // undeliverables requests will still live in the database,\r
+    // but we can clear out the 200 ones for sure\r
+               if res.StatusCode == 200 {\r
                        successfulRequests = append(successfulRequests, request_id)\r
                }\r
        }\r