Compare commits

..

No commits in common. "master" and "master-f8315afe6b" have entirely different histories.

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 := 60 * time.Minute timeout := 20 * time.Second
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)