all repos — honk @ 3564ac20788b84ec98931bc6db96103a3b2839bb

my fork of honk

the number of unreliable servers in the federation is too damn high!
Ted Unangst tedu@tedunangst.com
Tue, 21 May 2019 19:09:28 -0400
commit

3564ac20788b84ec98931bc6db96103a3b2839bb

parent

6bf279da3fee4ef0493baef7bc454529e290a51c

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -137,7 +137,12 @@ req.Header.Set("Accept-Encoding", "gzip")

req.Header.Set("User-Agent", "honksnonk/5.0") resp, err := client.Do(req) if err != nil { - return nil, err + log.Printf("first get failed: %s", err) + resp, err = client.Do(req) + if err != nil { + return nil, err + } + log.Printf("retry succeeded!") } if resp.StatusCode != 200 { resp.Body.Close()