From 3eee0f63cafcfbcd4602f55064e93b0b480052b2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 22 Apr 2020 18:37:26 -0400 Subject: [PATCH] in case webfinger fails, only cache one minute --- activity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.go b/activity.go index 32d5f54..81f7476 100644 --- a/activity.go +++ b/activity.go @@ -1361,7 +1361,7 @@ var handfull = cache.New(cache.Options{Filler: func(name string) (string, bool) } } return href, true -}}) +}, Duration: 1 * time.Minute}) func gofish(name string) string { if name[0] == '@' {