This commit is contained in:
Sergio
2026-05-08 17:27:10 +00:00
parent 354f992c63
commit 9420eae0b6
6 changed files with 18 additions and 3 deletions
@@ -57,6 +57,9 @@ impl EnteGraph {
/// Extiende un grant existente. Devuelve `true` si renovó. Si el token
/// no existe o ya expiró, `false` (el cliente debe re-acquire).
/// Usa el TTL específico de la cap del grant.
///
/// Reservado para el flujo de capability renewal (no cableado todavía).
#[allow(dead_code)]
pub fn renew_grant(&mut self, token: u64) -> bool {
let now = Instant::now();
if let Some(g) = self.grants.get_mut(&token) {