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
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.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()