We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cd37f commit 7fb1f7cCopy full SHA for 7fb1f7c
1 file changed
src/state.rs
@@ -62,6 +62,6 @@ pub async fn init() -> (webData<PgPool>, web::Data<AppCache>) {
62
// Initialize the in-memory cache (Moka)
63
let in_mem_cache = init_cache();
64
65
- // web::Data::new(cache)
+ // Wrap the state of the application and share it
66
(webData::new(postgres_state), webData::new(in_mem_cache))
67
}
0 commit comments