Skip to content

Commit

Permalink
config corrected for example storage plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Oct 18, 2023
1 parent a91e0cf commit 5fdbe66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
1 change: 1 addition & 0 deletions plugins/example-storage-plugin/config.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 3 additions & 10 deletions plugins/zenoh-plugin-storage-manager/config.json5
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
{
"volumes": {
"example" : {
"__path__": "./plugins/example-storage-plugin/target/debug/libexample_storage_plugin.dylib",
"example": {
"__path__": "target/debug/libzenoh_backend_example.so",
"__config__": "../../plugins/example-storage-plugin/config.json5"
}
//"influxdb_local": {
// "__path__": "../zenoh-backend-influxdb/target/debug/libzenoh_backend_influxdb.dylib",
// "__config__": "config_influxdb_local.json5"
//},
//"influxdb_remote": {
// "__path__": "../zenoh-backend-influxdb/target/debug/libzenoh_backend_influxdb.dylib",
// "__config__": "config_influxdb_remote.json5"
//}
},
"storages": {}
}

This file was deleted.

This file was deleted.

5 changes: 2 additions & 3 deletions plugins/zenoh-plugin-storage-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,12 @@ impl StorageRuntimeInner {
for path in paths {
unsafe {
if let Ok((lib, path)) = LibLoader::load_file(path) {
self.loaded_backend_from_lib(
return self.loaded_backend_from_lib(
&volume_id,
config.clone(),
lib,
path,
)?;
break;
);
}
}
}
Expand Down

0 comments on commit 5fdbe66

Please sign in to comment.