refactor: use minutes as time durations
This commit is contained in:
parent
a4cc579fe3
commit
19c2845222
4
main.go
4
main.go
@ -367,8 +367,8 @@ func main() {
|
|||||||
|
|
||||||
wrappedHandler := NewLogger(handler)
|
wrappedHandler := NewLogger(handler)
|
||||||
srv := http.Server{
|
srv := http.Server{
|
||||||
ReadTimeout: 60 * time.Second,
|
ReadTimeout: 1 * time.Minute,
|
||||||
WriteTimeout: 60 * time.Second,
|
WriteTimeout: 1 * time.Minute,
|
||||||
Addr: ":" + DEFAULT_HTTP_PORT,
|
Addr: ":" + DEFAULT_HTTP_PORT,
|
||||||
Handler: wrappedHandler,
|
Handler: wrappedHandler,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user