Skip to content

Commit 913181e

Browse files
fix(scaler): react to config set events for links
Signed-off-by: Brooks Townsend <[email protected]>
1 parent cf5c7f3 commit 913181e

File tree

1 file changed

+7
-2
lines changed
  • crates/wadm/src/scaler/spreadscaler

1 file changed

+7
-2
lines changed

crates/wadm/src/scaler/spreadscaler/link.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use wadm_types::{api::StatusInfo, TraitProperty};
77
use crate::{
88
commands::{Command, DeleteLink, PutLink},
99
events::{
10-
Event, LinkdefDeleted, LinkdefSet, ProviderHealthCheckInfo, ProviderHealthCheckPassed,
11-
ProviderHealthCheckStatus,
10+
ConfigSet, Event, LinkdefDeleted, LinkdefSet, ProviderHealthCheckInfo,
11+
ProviderHealthCheckPassed, ProviderHealthCheckStatus,
1212
},
1313
scaler::{compute_id_sha256, Scaler},
1414
storage::ReadStore,
@@ -129,6 +129,11 @@ where
129129
*self.status.write().await = StatusInfo::deployed("");
130130
Ok(Vec::new())
131131
}
132+
Event::ConfigSet(ConfigSet { config_name })
133+
if self.config.source_config.contains(config_name)
134+
|| self.config.target_config.contains(config_name) => {
135+
self.reconcile().await
136+
}
132137
_ => Ok(Vec::new()),
133138
}
134139
}

0 commit comments

Comments
 (0)