diff options
author | 2023-11-13 19:48:51 +0100 | |
---|---|---|
committer | 2023-11-13 19:48:51 +0100 | |
commit | 8d0c017cf205bcf57630c91b53079001deed4d36 (patch) | |
tree | cf2240e3dff137df2871c9b93548a885833e9a52 /internal/api/auth.go | |
parent | [chore] update otel -> v1.20.0 (#2358) (diff) | |
download | gotosocial-8d0c017cf205bcf57630c91b53079001deed4d36.tar.xz |
[feature/performance] Wrap incoming HTTP requests in timeout handler (#2353)
* deinterface router, start messing about with deadlines
* weeeee
* thanks linter (thinter)
* write Connection: close when timing out requests
* update wording
* don't replace req
* don't bother with fancy Cause functions (I'll use them one day...)
Diffstat (limited to 'internal/api/auth.go')
-rw-r--r-- | internal/api/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/auth.go b/internal/api/auth.go index 961caa981..8d7808a3a 100644 --- a/internal/api/auth.go +++ b/internal/api/auth.go @@ -36,7 +36,7 @@ type Auth struct { } // Route attaches 'auth' and 'oauth' groups to the given router. -func (a *Auth) Route(r router.Router, m ...gin.HandlerFunc) { +func (a *Auth) Route(r *router.Router, m ...gin.HandlerFunc) { // create groupings for the 'auth' and 'oauth' prefixes authGroup := r.AttachGroup("auth") oauthGroup := r.AttachGroup("oauth") |