Merge pull request 'adjusted timeout for prod release' (#5) from expiretime-prod into master
All checks were successful
Build Pogdark API / Build Pogdark API (push) Successful in 20s

Reviewed-on: #5
This commit is contained in:
whysman 2025-05-08 18:54:59 +00:00
commit 969b182f3b

View File

@ -339,7 +339,7 @@ func setState(w http.ResponseWriter, r *http.Request, s *Server) {
http.Error(w, "Failed to encode message", http.StatusInternalServerError)
return
}
timeout := 20 * time.Second
timeout := 60 * time.Minute
err = redisClient.Set(ctx, message.Id, msgJSON, timeout).Err()
if err != nil {
log.Printf("Failed to set key in Redis: %v", err)