adjusted timeout for prod release
All checks were successful
Build Pogdark API / Build Pogdark API (pull_request) Successful in 24s
All checks were successful
Build Pogdark API / Build Pogdark API (pull_request) Successful in 24s
This commit is contained in:
parent
f8315afe6b
commit
c6d14870ca
2
main.go
2
main.go
@ -339,7 +339,7 @@ func setState(w http.ResponseWriter, r *http.Request, s *Server) {
|
|||||||
http.Error(w, "Failed to encode message", http.StatusInternalServerError)
|
http.Error(w, "Failed to encode message", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
timeout := 20 * time.Second
|
timeout := 60 * time.Minute
|
||||||
err = redisClient.Set(ctx, message.Id, msgJSON, timeout).Err()
|
err = redisClient.Set(ctx, message.Id, msgJSON, timeout).Err()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to set key in Redis: %v", err)
|
log.Printf("Failed to set key in Redis: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user