all repos — honk @ 659e5fc38c5c816493d228039e8f265f6bdba00f

my fork of honk

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
commit

659e5fc38c5c816493d228039e8f265f6bdba00f

parent

8eaef97cbae8d52fc093b0de8d3c21043a5afb3b

2 files changed, 8 insertions(+), 0 deletions(-)

jump to
M docs/changelog.txtdocs/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.gofun.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 } }