diff options
Diffstat (limited to 'src/db/settings.rs')
| -rw-r--r-- | src/db/settings.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db/settings.rs b/src/db/settings.rs index ebd2c06..d42bb52 100644 --- a/src/db/settings.rs +++ b/src/db/settings.rs @@ -35,6 +35,12 @@ pub fn setting_i64(db: &Db, key: &str, default: i64) -> i64 { } } +/// Write one settings row. +/// +/// Test-tier only: the readers are used in production, the setter is not — +/// settings are written by migration and by the operators' own hands, and no +/// code path in the crate writes one at runtime. +#[cfg(feature = "test-support")] pub fn set_setting(writer: &Writer, key: &str, value: &str) -> Result<()> { let v = value.to_string(); let k = key.to_string(); |
