all repos — honk @ 89a90ab4afe9c8dafd4cad0d547d110aa455727b

my fork of honk

don't hold mutex across net calls
Ted Unangst tedu@tedunangst.com
Mon, 15 Apr 2019 23:54:29 -0400
commit

89a90ab4afe9c8dafd4cad0d547d110aa455727b

parent

455699bae42b2eb7a7a12d1a024a7c5851457d5c

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

jump to
M honk.gohonk.go

@@ -845,12 +845,14 @@ log.Printf("bad fish name: %s", name)

return "" } handlock.Lock() - defer handlock.Unlock() ref, ok := handfull[name] + handlock.Unlock() if ok { return ref } j, err := GetJunk(fmt.Sprintf("https://%s/.well-known/webfinger?resource=acct:%s", m[1], name)) + handlock.Lock() + defer handlock.Unlock() if err != nil { log.Printf("failed to go fish %s: %s", name, err) handfull[name] = ""