diff options
| author | 2023-11-13 19:48:51 +0100 | |
|---|---|---|
| committer | 2023-11-13 19:48:51 +0100 | |
| commit | 8d0c017cf205bcf57630c91b53079001deed4d36 (patch) | |
| tree | cf2240e3dff137df2871c9b93548a885833e9a52 /internal/gotosocial | |
| 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/gotosocial')
| -rw-r--r-- | internal/gotosocial/gotosocial.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gotosocial/gotosocial.go b/internal/gotosocial/gotosocial.go index 74cc09f65..e6a3934be 100644 --- a/internal/gotosocial/gotosocial.go +++ b/internal/gotosocial/gotosocial.go @@ -29,7 +29,7 @@ import ( // GoToSocial server instance. type Server struct { db db.DB - apiRouter router.Router + apiRouter *router.Router cleaner *cleaner.Cleaner } @@ -37,7 +37,7 @@ type Server struct { // GoToSocial server instance. func NewServer( db db.DB, - apiRouter router.Router, + apiRouter *router.Router, cleaner *cleaner.Cleaner, ) *Server { return &Server{ |
