Skip to content

Commit

Permalink
unfinished
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Nov 2, 2023
1 parent be3382d commit 13381dd
Show file tree
Hide file tree
Showing 5 changed files with 277 additions and 182 deletions.
2 changes: 1 addition & 1 deletion plugins/zenoh-plugin-storage-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl StorageRuntimeInner {
self.plugins_manager
.load_plugin_by_backend_name(volume_id, backend_name)?;
}
self.plugins_manager.plugin_mut(volume_id)?.start(&config)?;
self.plugins_manager.plugin_mut(volume_id)?.run(&config)?;
Ok(())
}
fn kill_storage(&mut self, config: StorageConfig) {
Expand Down
17 changes: 0 additions & 17 deletions plugins/zenoh-plugin-trait/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ pub trait CompatibilityVersion {
fn features() -> &'static str;
}

pub enum PluginState {
Declared,
Loaded,
Started,
}

pub enum PluginCondition {
Ok,
Warning(String),
Error(String),
}

pub struct PluginStatus {
pub state: PluginState,
pub condition: PluginCondition,
}

pub trait PluginControl {
fn plugins(&self) -> Vec<&str>;
fn status(&self, name: &str) -> PluginStatus;

Check failure on line 54 in plugins/zenoh-plugin-trait/src/lib.rs

View workflow job for this annotation

GitHub Actions / Run tests on ubuntu-latest

cannot find type `PluginStatus` in this scope

Check failure on line 54 in plugins/zenoh-plugin-trait/src/lib.rs

View workflow job for this annotation

GitHub Actions / Run tests on windows-latest

cannot find type `PluginStatus` in this scope

Check failure on line 54 in plugins/zenoh-plugin-trait/src/lib.rs

View workflow job for this annotation

GitHub Actions / Run tests on macOS-latest

cannot find type `PluginStatus` in this scope
Expand Down
Loading

0 comments on commit 13381dd

Please sign in to comment.