fix Expire
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m22s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m22s
This commit is contained in:
2
main.go
2
main.go
@@ -305,7 +305,7 @@ func handleStart(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Expire setzen
|
// Expire setzen
|
||||||
rdb.Expire(ctx, "session:"+sessionID, 1*time.Hour)
|
rdb.Expire(ctx, "session:"+sessionID, 8760*time.Hour)
|
||||||
|
|
||||||
json.NewEncoder(w).Encode(StartResponse{SessionID: sessionID, Seed: seed32})
|
json.NewEncoder(w).Encode(StartResponse{SessionID: sessionID, Seed: seed32})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user