Skip to content

Commit

Permalink
config workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
senia-psm committed Jul 1, 2024
1 parent 8bb7ab3 commit a13e7fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion golem-shard-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ async fn async_main(

let health_check: Arc<dyn HealthCheck + Send + Sync> =
match &shard_manager_config.health_check.mode {
HealthCheckMode::Grpc => Arc::new(GrpcHealthCheck::new(
HealthCheckMode::Grpc { .. } => Arc::new(GrpcHealthCheck::new(
worker_executors.clone(),
shard_manager_config.worker_executors.retries.clone(),
)),
Expand Down
9 changes: 5 additions & 4 deletions golem-shard-manager/src/shard_manager_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ pub struct HealthCheckConfig {
#[derive(Clone, Debug, Deserialize)]
#[serde(tag = "type", content = "config")]
pub enum HealthCheckMode {
Grpc,
#[cfg(feature = "kubernetes")]
K8s {
namespace: String,
Grpc {
// Useless. Just to make config lib happy.
_dummy: Option<u8>,
},
#[cfg(feature = "kubernetes")]
K8s { namespace: String },
}

#[cfg(test)]
Expand Down

0 comments on commit a13e7fa

Please sign in to comment.