commit 34837875a75779076a945be3dde90966b6db94a3
parent 2af9d96239d60393448b7d828e2ab9030dffb933
Author: triesap <tyson@radroots.org>
Date: Thu, 6 Aug 2026 06:57:25 +0000
mobile: make sdk status mappings explicit
- define stable labels for every storage backend and open mode
- define stable labels for every shutdown and integrity state
- replace mobile Debug formatting with protocol-owned mappings
- cover the complete storage label matrix with focused tests
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/crates/tera_core/src/runtime/sdk.rs b/core/crates/tera_core/src/runtime/sdk.rs
@@ -49,10 +49,10 @@ impl RadrootsRuntime {
.await
.map_err(RadrootsAppError::from_sdk)?;
Ok(SdkStorageStatusRecord {
- backend: format!("{:?}", status.backend()).to_ascii_lowercase(),
- open_mode: format!("{:?}", status.open_mode()).to_ascii_lowercase(),
- shutdown: format!("{:?}", status.shutdown()).to_ascii_lowercase(),
- integrity: format!("{:?}", status.integrity().health()).to_ascii_lowercase(),
+ backend: status.backend().as_str().to_owned(),
+ open_mode: status.open_mode().as_str().to_owned(),
+ shutdown: status.shutdown().as_str().to_owned(),
+ integrity: status.integrity().health().as_str().to_owned(),
})
}
}