ntex-rs / website

The Ntex website.
https://ntex.rs
Apache License 2.0
7 stars 2 forks source link

Mutable app state example mentions `web::Data` which does not (any more) seem to exist #10

Closed LeoniePhiline closed 2 weeks ago

LeoniePhiline commented 1 month ago

The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions web::Data.

Maybe web::types::State is meant?

Since what is being created is a plain struct, this could be reworded to // Note: App state created _outside_ HttpServer::new closure.

Please let me know if I misunderstood. If not, then I'll be happy to PR the fix.

leon3s commented 2 weeks ago

Hey @LeoniePhiline, sorry for the late reply, i didn't get notified. You're right web::types::State is meant! You can open a pull request if you want!