From 3b513e3a8ce386c3475480cacd5ae973822f7d30 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 17 Dec 2019 12:21:55 +0000 Subject: [PATCH] Update route timeouts --- web/routes.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/routes.go b/web/routes.go index 0abcb214..31199434 100644 --- a/web/routes.go +++ b/web/routes.go @@ -116,7 +116,7 @@ func routes(s *fibre.Fibre) { }) s.Use(mw.Quit(&mw.QuitOpts{ - Timeout: 5 * time.Second, + Timeout: 10 * time.Second, }).PathIs("/signup")) s.Use(mw.Type(&mw.TypeOpts{ @@ -142,7 +142,7 @@ func routes(s *fibre.Fibre) { }) s.Use(mw.Quit(&mw.QuitOpts{ - Timeout: 5 * time.Second, + Timeout: 10 * time.Second, }).PathIs("/signin")) s.Use(mw.Type(&mw.TypeOpts{ @@ -171,10 +171,6 @@ func routes(s *fibre.Fibre) { return c.Send(200, res) }) - s.Use(mw.Quit(&mw.QuitOpts{ - Timeout: 15 * time.Second, - }).PathIs("/sql")) - s.Use(mw.Type(&mw.TypeOpts{ AllowedContent: map[string]bool{ "text/plain": true,