tuwunel_service/migrations/
split_conduit_highlight_counts.rs1use tuwunel_core::{Result, result::NotFound};
2
3use super::conduit::migrate_conduit_highlight_split;
4use crate::Services;
5
6pub(super) async fn split_conduit_highlight_counts(services: &Services) -> Result {
14 let db = &services.db;
15
16 if db["global"]
17 .get(b"split_conduit_highlight")
18 .await
19 .is_not_found()
20 {
21 migrate_conduit_highlight_split(services).await?;
22 db["global"].insert(b"split_conduit_highlight", []);
23 }
24
25 Ok(())
26}