Open rhomber opened 1 year ago
Someone in the rust community (bruh![moment]) was able to get it working, if we create:
fn cache_session(session_id: String, attestation: Attestation) -> BoxFuture<'static, bool> {
CACHE.insert(session_id, Box::new(attestation), 1).boxed()
}
and call that instead, it works!
So perhaps you need to provide a BoxFuture instead here?
Thanks! I will look at it later.
Which happens when i use async_trait or directly use BoxFuture. It all relates to this line:
My cache is constructed: