Skip to content

Commit 7fb1f7c

Browse files
committed
Clarify comment for wrapping application state in init function
1 parent 42cd37f commit 7fb1f7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ pub async fn init() -> (webData<PgPool>, web::Data<AppCache>) {
6262
// Initialize the in-memory cache (Moka)
6363
let in_mem_cache = init_cache();
6464

65-
// web::Data::new(cache)
65+
// Wrap the state of the application and share it
6666
(webData::new(postgres_state), webData::new(in_mem_cache))
6767
}

0 commit comments

Comments
 (0)