Decrease http timeouts for /signup and /signin routes
This commit is contained in:
parent
96cd07e1d1
commit
eb160265b7
1 changed files with 2 additions and 2 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue