feat(server): ProposalKind::ApprovePersistentGrant

This commit is contained in:
CleverWild
2026-06-13 21:27:41 +02:00
committed by Skipper
parent 0215bacf31
commit de517b3585
6 changed files with 190 additions and 12 deletions

View File

@@ -60,6 +60,10 @@ async fn handle_create(
#[expect(clippy::cast_possible_truncation, clippy::as_conversions, reason = "new_n is always a small operator count")]
new_n: p.new_n as u8,
},
Some(ProtoKind::ApprovePersistentGrant(p)) => {
use prost::Message as _;
ProposalKind::ApprovePersistentGrant { payload_bytes: p.encode_to_vec() }
}
None => return Err(Status::invalid_argument("Missing proposal kind")),
};
let ttl_secs = req.ttl_secs.map(i64::from);