signing_actor: take request by reference

This commit is contained in:
Alex Auvolat 2023-05-31 11:26:42 +02:00
parent 588c41efc9
commit f068545df8

View file

@ -16,7 +16,7 @@ use serde::Deserialize;
/// Checks whether the request is signed by an actor of type A, and returns
/// the actor in question if a valid signature is found.
pub async fn signing_actor<A>(
request: HttpRequest,
request: &HttpRequest,
body: Option<Bytes>,
data: &Data<<A as Object>::DataType>,
) -> Result<A, <A as Object>::Error>