increase server timeout limit, improve and add db indices

- change energy footprint key to string
This commit is contained in:
Christoph Kluge
2024-08-27 17:43:48 +02:00
parent 084f89fa32
commit cff60eb51c
5 changed files with 22 additions and 10 deletions

View File

@@ -260,8 +260,8 @@ func serverStart() {
})
server = &http.Server{
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
ReadTimeout: 20 * time.Second,
WriteTimeout: 20 * time.Second,
Handler: handler,
Addr: config.Keys.Addr,
}