diff options
author | 2023-04-29 17:44:20 +0100 | |
---|---|---|
committer | 2023-04-29 18:44:20 +0200 | |
commit | 68b91d2128c7be3c4f060091b172c39057318ad4 (patch) | |
tree | 3bcf4af8fa79b43f56857df4bba1453977fa01b3 /internal/media/processingemoji.go | |
parent | [feature] Add GET endpoint for single notification (#1719) (diff) | |
download | gotosocial-68b91d2128c7be3c4f060091b172c39057318ad4.tar.xz |
[performance] tweak http client error handling (#1718)
* update errors library, check for more TLS type error in http client
Signed-off-by: kim <grufwub@gmail.com>
* bump cache library version to match errors library
Signed-off-by: kim <grufwub@gmail.com>
---------
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/media/processingemoji.go')
-rw-r--r-- | internal/media/processingemoji.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/processingemoji.go b/internal/media/processingemoji.go index 33f1539b7..add2ae18b 100644 --- a/internal/media/processingemoji.go +++ b/internal/media/processingemoji.go @@ -95,7 +95,7 @@ func (p *ProcessingEmoji) load(ctx context.Context) (*gtsmodel.Emoji, bool, erro defer func() { // This is only done when ctx NOT cancelled. - done = err == nil || !errors.Is(err, + done = err == nil || !errors.Comparable(err, context.Canceled, context.DeadlineExceeded, ) |