Skip to content

Commit

Permalink
fixup! Add tedge config plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruadhri17 committed Sep 12, 2023
1 parent 65032af commit 8b3b347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/tedge_configuration_plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ clap = { workspace = true }
tedge_actors = { workspace = true }
tedge_config = { workspace = true }
tedge_config_manager = { workspace = true }
tedge_downloader_ext = { workspace = true }
tedge_file_system_ext = { workspace = true }
tedge_health_ext = { workspace = true }
tedge_http_ext = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions plugins/tedge_configuration_plugin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use tedge_config::TEdgeConfigRepository;
use tedge_config::DEFAULT_TEDGE_CONFIG_PATH;
use tedge_config_manager::ConfigManagerBuilder;
use tedge_config_manager::ConfigManagerConfig;
use tedge_downloader_ext::DownloaderActor;
use tedge_file_system_ext::FsWatchActorBuilder;
use tedge_health_ext::HealthMonitorBuilder;
use tedge_http_ext::HttpActor;
Expand Down Expand Up @@ -103,6 +104,8 @@ async fn run(

let mut http_actor = HttpActor::new().builder();

let mut downloader_actor = DownloaderActor::new().builder();

// Instantiate config manager actor
let manager_config = ConfigManagerConfig::from_tedge_config(
config_dir,
Expand All @@ -115,6 +118,7 @@ async fn run(
&mut mqtt_actor,
&mut http_actor,
&mut fs_watch_actor,
&mut downloader_actor,
)?;

// Shutdown on SIGINT
Expand Down

0 comments on commit 8b3b347

Please sign in to comment.