fastskill_core/storage/
hot_reload.rs1use crate::core::service::ServiceError;
4use crate::storage::StorageBackend;
5use std::path::PathBuf;
6use std::sync::Arc;
7
8pub struct HotReloadManager {
9 #[allow(dead_code)]
10 storage: Arc<dyn StorageBackend>,
11 #[allow(dead_code)]
12 event_bus: Arc<crate::events::EventBus>,
13}
14
15impl HotReloadManager {
16 pub fn new(
17 storage: Arc<dyn StorageBackend>,
18 event_bus: Arc<crate::events::EventBus>,
19 ) -> Result<Self, ServiceError> {
20 Ok(Self { storage, event_bus })
21 }
22
23 pub async fn enable_hot_reloading(&self, _paths: Vec<PathBuf>) -> Result<(), ServiceError> {
25 Ok(())
26 }
27
28 pub async fn disable_hot_reloading(&self) -> Result<(), ServiceError> {
30 Ok(())
31 }
32}