More config debug.

This commit is contained in:
Samuel Guerra 2023-05-30 00:17:46 -03:00
parent 6710ed4868
commit a2b928ffd4
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@
* Config test sometimes reads empty.
- Empty is written on init, then quickly filled with defaults for the write test.
- Maybe the empty write is happening after the filled somehow?
- Nope, tracing shows a full write request and commit.
- But the file is empty on error.. (empty as in `#` for TOML, not zero-sized)
* Review save debounce.
* Test concurrent access to same config.

View File

@ -62,6 +62,8 @@ impl AppExtension for ConfigManager {}
///
/// Config sources must be loaded using [`CONFIG.load`], otherwise the config only leaves for the
/// duration of the app instance.
///
/// [`CONFIG.load`]: CONFIG::load
pub struct CONFIG;
impl CONFIG {
/// Replace the config source.