Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/release/0.2' into feature/repo
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed Oct 2, 2019
2 parents a8fafb8 + a6d4d06 commit 082713c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions gu-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ default = ["env-docker"]
win-service = ["windows-service"]
clinfo = ["gu-hardware/clinfo"]
env-docker = ["async_docker"]
env-hd = []
ssl=["openssl/vendored", "actix-web/ssl"]

[package.metadata.deb]
Expand Down
4 changes: 3 additions & 1 deletion gu-provider/src/exec_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ impl Module for ExecPlugModule {
.unwrap_or_else(|e| log::debug!("on scan /usr/lib/golemu/plugins: {}", e));
#[cfg(windows)]
{
let _ = scan_for_plugins("plugins".as_ref(), config);
let cur_dir = std::env::current_dir().unwrap();
let _ = scan_for_plugins(cur_dir.as_ref(), config)
.unwrap_or_else(|e| log::error!("on scan {:?}/plugins: {}", work_dir, e));
}
#[cfg(target_os = "macos")]
{
Expand Down
1 change: 1 addition & 0 deletions gu-provider/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod connect;
mod deployment;
pub mod envman;
mod fchain;
#[cfg(feature = "env-hd")]
mod hdman;
mod id;
mod permission;
Expand Down
3 changes: 3 additions & 0 deletions gu-provider/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ use crate::connect::{
self, AutoMdns, Connect, ConnectManager, ConnectModeMessage, ConnectionChange,
ConnectionChangeMessage, Disconnect, ListSockets,
};
#[cfg(feature = "env-hd")]
use crate::hdman::HdMan;

#[derive(Serialize, Deserialize, Clone)]
Expand Down Expand Up @@ -184,6 +185,8 @@ impl Module for ServerModule {
gu_base::run_once(move || {
let dec = decorator.to_owned();
let config_module: &ConfigModule = dec.extract().unwrap();

#[cfg(feature = "env-hd")]
let _ = HdMan::start(config_module);

ProviderServer::from_registry().do_send(InitServer {
Expand Down

0 comments on commit 082713c

Please sign in to comment.