Skip to content

Commit

Permalink
move config polling to enterprise (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander authored Oct 9, 2024
1 parent b42b3a4 commit 71b76ce
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src-tauri/src/bin/defguard-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ use defguard_client::{
update_location_routing, update_settings, update_tunnel,
},
database::{self, models::settings::Settings},
enterprise::periodic::config::poll_config,
events::SINGLE_INSTANCE,
periodic::{config::poll_config, version::poll_version},
periodic::version::poll_version,
tray::{configure_tray_icon, handle_tray_event, reload_tray_menu},
utils::load_log_targets,
VERSION,
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use crate::{
ActiveConnection, Connection, ConnectionInfo, Instance, Location, Settings, Tunnel,
TunnelConnection, TunnelConnectionInfo, TunnelStats, WireguardKeys,
},
enterprise::periodic::config::poll_instance,
error::Error,
events::{CONNECTION_CHANGED, INSTANCE_UPDATE, LOCATION_UPDATE},
periodic::config::poll_instance,
proto::{DeviceConfig, DeviceConfigResponse},
service::{log_watcher::stop_log_watcher_task, proto::RemoveInterfaceRequest},
tray::{configure_tray_icon, reload_tray_menu},
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/enterprise/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod periodic;
File renamed without changes.
1 change: 1 addition & 0 deletions src-tauri/src/enterprise/periodic/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod config;
1 change: 1 addition & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
pub mod appstate;
pub mod commands;
pub mod database;
pub mod enterprise;
pub mod error;
pub mod events;
pub mod periodic;
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/periodic/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod config;
pub mod version;

0 comments on commit 71b76ce

Please sign in to comment.