Update route timeouts

This commit is contained in:
Tobie Morgan Hitchcock 2019-12-17 12:21:55 +00:00
parent 4e5b1249d5
commit 3b513e3a8c

View file

@ -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,