Extract store invalidation detection into separate AppState

This commit is contained in:
Joscha 2025-05-26 23:45:58 +02:00
parent 0e7e54bf71
commit 46f5bc38b8
4 changed files with 75 additions and 50 deletions

View file

@ -0,0 +1,15 @@
use gdn::store::Store;
pub struct AppState {
pub store: Store,
pub store_last_id: Option<u64>,
}
impl AppState {
pub fn new() -> Self {
Self {
store: Store::new(),
store_last_id: None,
}
}
}