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
All checks were successful
Build Pogdark API / Build Pogdark API (push) Successful in 20s
Reviewed-on: #5
This commit is contained in:
commit
969b182f3b
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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user