diff --git a/Makefile b/Makefile index d4ca61f1..91513b41 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,6 @@ goreleaser: migrate-create: migrate create -ext sql -dir db/migrations -seq -digits 1 $(message) + +pprof: + go tool pprof -http=:9610 http://localhost:9602/debug/pprof/profile?seconds=30 diff --git a/status/status.go b/status/status.go index 068c3ee9..6641cd6f 100644 --- a/status/status.go +++ b/status/status.go @@ -38,8 +38,8 @@ func NewStatus(cfg modules.StatusConfig, opts Options) *Status { s := &http.Server{ Handler: api.Handler(), Addr: cfg.Listen, - WriteTimeout: 10 * time.Second, - ReadTimeout: 10 * time.Second, + WriteTimeout: 60 * time.Second, + ReadTimeout: 60 * time.Second, } status := &Status{