Compare commits

..

3 Commits

Author SHA1 Message Date
969b182f3b 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
2025-05-08 18:54:59 +00:00
whysman
c6d14870ca adjusted timeout for prod release
All checks were successful
Build Pogdark API / Build Pogdark API (pull_request) Successful in 24s
2025-05-08 14:51:11 -04:00
f8315afe6b Merge pull request 'location-api' (#4) from location-api into master
All checks were successful
Build Pogdark API / Build Pogdark API (push) Successful in 20s
Reviewed-on: https://www.kaiser-labs.com/public/pogdark-api/pulls/4
2025-04-29 03:20:22 +00:00

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) 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)