Skip to content
Discussion options

You must be logged in to vote
pub fn bootload_app(
    db_descriptor: Arc<SurrealDescriptor>,
...
        .app_data(web::Data::new(db_descriptor))

I suspect this is your issue, currently this sets up app data with the type Data<Arc<SurrealDescriptor>>. You will want to use the From<Arc<T>> impl like .app_data(web::Data::from(db_descriptor)) in order to get a Data<SurrealDescriptor> in the app data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abeni-csa
Comment options

Answer selected by abeni-csa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3719 on August 06, 2025 07:14.