Skip to content

Commit

Permalink
fixing compiler issues
Browse files Browse the repository at this point in the history
  • Loading branch information
moreno-michael committed Feb 9, 2024
1 parent 8c6d093 commit d7f892a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ott-balancer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use clap::{Parser, ValueEnum};
use figment::providers::Format;
use serde::Deserialize;

use crate::discovery::{FlyDiscoveryConfig, HarnessDiscoveryConfig, ManualDiscoveryConfig};
use crate::discovery::{
DnsDiscoveryConfig, FlyDiscoveryConfig, HarnessDiscoveryConfig, ManualDiscoveryConfig,
};

static mut CONFIG: Option<BalancerConfig> = None;

Expand Down
1 change: 1 addition & 0 deletions crates/ott-balancer/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod fly;
mod harness;
mod manual;

pub use dns::*;
pub use fly::*;
pub use harness::*;
pub use manual::*;
Expand Down
4 changes: 4 additions & 0 deletions crates/ott-balancer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ pub async fn run() -> anyhow::Result<()> {

info!("Starting monolith discovery");
let _discovery_handle = match &config.discovery {
DiscoveryConfig::Dns(config) => {
let discovery = discovery::DnsMonolithDiscoverer::new(config.clone());
start_discovery_task(discovery, discovery_tx)
}
DiscoveryConfig::Fly(config) => {
let discovery = discovery::FlyMonolithDiscoverer::new(config.clone());
start_discovery_task(discovery, discovery_tx)
Expand Down

0 comments on commit d7f892a

Please sign in to comment.