Decrease http timeouts for /signup and /signin routes

This commit is contained in:
Tobie Morgan Hitchcock 2017-11-16 20:41:29 +00:00
parent 96cd07e1d1
commit eb160265b7

View file

@ -84,7 +84,7 @@ func routes(s *fibre.Fibre) {
}) })
s.Use(mw.Quit(&mw.QuitOpts{ s.Use(mw.Quit(&mw.QuitOpts{
Timeout: 10 * time.Second, Timeout: 5 * time.Second,
}).PathIs("/signup")) }).PathIs("/signup"))
s.Use(mw.Type(&mw.TypeOpts{ s.Use(mw.Type(&mw.TypeOpts{
@ -109,7 +109,7 @@ func routes(s *fibre.Fibre) {
}) })
s.Use(mw.Quit(&mw.QuitOpts{ s.Use(mw.Quit(&mw.QuitOpts{
Timeout: 10 * time.Second, Timeout: 5 * time.Second,
}).PathIs("/signin")) }).PathIs("/signin"))
s.Use(mw.Type(&mw.TypeOpts{ s.Use(mw.Type(&mw.TypeOpts{