if key fetch fails, save the failure so we don't retry again too quickly
Ted Unangst tedu@tedunangst.com
Thu, 26 Dec 2019 14:46:37 -0500
2 files changed,
8 insertions(+),
0 deletions(-)
M
docs/changelog.txt
→
docs/changelog.txt
@@ -1,5 +1,9 @@
changelog +=== next + ++ Reduce retries talking to dumb servers. + === 0.8.6 Sartorial Headpiece ++ Import command now supports the elephant in the room.
M
fun.go
→
fun.go
@@ -603,6 +603,8 @@ log.Printf("hitting the webs for missing pubkey: %s", keyname)
j, err := GetJunk(keyname) if err != nil { log.Printf("error getting %s pubkey: %s", keyname, err) + when := time.Now().UTC().Format(dbtimeformat) + stmtSaveXonker.Exec(keyname, "failed", "pubkey", when) return nil, true } allinjest(originate(keyname), j)@@ -610,6 +612,8 @@ row = stmtGetXonker.QueryRow(keyname, "pubkey")
err = row.Scan(&data) if err != nil { log.Printf("key not found after ingesting") + when := time.Now().UTC().Format(dbtimeformat) + stmtSaveXonker.Exec(keyname, "failed", "pubkey", when) return nil, true } }