refactor: use minutes as time durations

This commit is contained in:
HeshamTB 2023-09-22 22:59:28 +03:00
parent a4cc579fe3
commit 19c2845222

View File

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