remove unneeded pub

This commit is contained in:
Luna Yao
2026-04-06 11:55:25 +02:00
parent b7edbad4b9
commit 2b3417d703
5 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -37,18 +37,18 @@ use tracing::{instrument, Instrument};
use crate::instance::instance::{ArcNicCtx, NicCtx};
#[derive(Clone)]
pub struct DynamicCatalog {
struct DynamicCatalog {
inner: Arc<tokio::sync::RwLock<Catalog>>,
}
impl DynamicCatalog {
pub fn new() -> Self {
fn new() -> Self {
Self {
inner: Arc::new(tokio::sync::RwLock::new(Catalog::new())),
}
}
pub async fn replace(&self, new: Catalog) {
async fn replace(&self, new: Catalog) {
*self.inner.write().await = new;
}
}