in case webfinger fails, only cache one minute

This commit is contained in:
Ted Unangst 2020-04-22 18:37:26 -04:00
parent 3b48371b49
commit 3eee0f63ca
1 changed files with 1 additions and 1 deletions

View File

@ -1361,7 +1361,7 @@ var handfull = cache.New(cache.Options{Filler: func(name string) (string, bool)
} }
} }
return href, true return href, true
}}) }, Duration: 1 * time.Minute})
func gofish(name string) string { func gofish(name string) string {
if name[0] == '@' { if name[0] == '@' {