new file will be created when sd card is empty

This commit is contained in:
Philipp_EndevourOS
2025-10-01 18:58:08 +02:00
parent c91f290c31
commit db7e22f45d
2 changed files with 13 additions and 10 deletions

View File

@@ -41,10 +41,10 @@ pub struct IDStore<T: Persistence> {
impl<T: Persistence> IDStore<T> {
pub async fn new_from_storage(mut persistence_layer: T) -> Self {
let mapping = match persistence_layer.load_mapping().await {
Some(map) => map,
None => IDMapping::new(),
};
// let mapping = match persistence_layer.load_mapping().await {
// Some(map) => map,
// None => IDMapping::new(),
// };
let current_date: Date = 1;
@@ -55,7 +55,7 @@ impl<T: Persistence> IDStore<T> {
Self {
current_day: day,
mapping,
mapping: IDMapping::new(),
persistence_layer,
}
}