diff options
author | 2024-09-23 11:53:42 +0000 | |
---|---|---|
committer | 2024-09-23 11:53:42 +0000 | |
commit | 4592e290872e0208d03189aea4f410cd47a5dc1d (patch) | |
tree | 00df4221fc924e8fdcafc985f33c0395687a711c /internal/httpclient/client.go | |
parent | [chore] header filter improvements (#3329) (diff) | |
download | gotosocial-4592e290872e0208d03189aea4f410cd47a5dc1d.tar.xz |
[chore] local instance count query caching, improved status context endpoint logging, don't log ErrHideStatus when timelining (#3330)
* ensure that errors checking status visibility / converting aren't dropped
* add some more context to error messages
* include calling function name in log entries
* don't error on timelining hidden status
* further code to ignore statusfilter.ErrHideStatus type errors
* remove unused error type
* add local instance status / domain / user counts
* add checks for localhost
* rename from InstanceCounts to LocalInstance
* improved code comment
Diffstat (limited to 'internal/httpclient/client.go')
-rw-r--r-- | internal/httpclient/client.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index 30ef0b04d..8a5f51c21 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -48,9 +48,6 @@ var ( // ErrReservedAddr is returned if a dialed address resolves to an IP within a blocked or reserved net. ErrReservedAddr = errors.New("dial within blocked / reserved IP range") - - // ErrBodyTooLarge is returned when a received response body is above predefined limit (default 40MB). - ErrBodyTooLarge = errors.New("body size too large") ) // Config provides configuration details for setting up a new @@ -302,7 +299,6 @@ func (c *Client) do(r *Request) (rsp *http.Response, retry bool, err error) { if errorsv2.IsV2(err, context.DeadlineExceeded, context.Canceled, - ErrBodyTooLarge, ErrReservedAddr, ) { // Non-retryable errors. |