From 8d0c017cf205bcf57630c91b53079001deed4d36 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:48:51 +0100 Subject: [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...) --- internal/api/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api/client.go') diff --git a/internal/api/client.go b/internal/api/client.go index ec8fa6034..1112efa31 100644 --- a/internal/api/client.go +++ b/internal/api/client.go @@ -79,7 +79,7 @@ type Client struct { user *user.Module // api/v1/user } -func (c *Client) Route(r router.Router, m ...gin.HandlerFunc) { +func (c *Client) Route(r *router.Router, m ...gin.HandlerFunc) { // create a new group on the top level client 'api' prefix apiGroup := r.AttachGroup("api") -- cgit v1.2.3