diff options
author | Jordan <me@jordan.im> | 2021-12-03 14:12:26 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-03 14:12:26 -0700 |
commit | 1523f59494ca08e7a0696ce9b8b266010bff00eb (patch) | |
tree | 5fabe31ca6349b3cc973a3013a2a6c5c5f43bbdc | |
parent | 03bd97a15be6086ddf16521aa0d6fc6d3282ebde (diff) | |
download | keep-1523f59494ca08e7a0696ce9b8b266010bff00eb.tar.gz keep-1523f59494ca08e7a0696ce9b8b266010bff00eb.zip |
keep: rm cached status code check
-rw-r--r-- | keep.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -111,10 +111,9 @@ func archiver(db *sql.DB) { // Blocks until URL is received message := <-messageChan - // Skip if we have URL in database and status OK - cached, status_code := isCached(db, message.URL) - if cached && status_code == http.StatusOK { - log.Printf("%d %s", status_code, message.URL) + // Skip if we have URL in database + cached, _ := isCached(db, message.URL) + if cached { continue } |