Compare commits
No commits in common. "969b182f3b228c3a227c606b3f24565189aa7f69" and "f8315afe6b778c2c04776ee7e9dc5796264a264c" have entirely different histories.
969b182f3b
...
f8315afe6b
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 := 60 * time.Minute
|
||||
timeout := 20 * time.Second
|
||||
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