We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8fc392 commit 890f9e8Copy full SHA for 890f9e8
1 file changed
gateway/src/main_service.rs
@@ -816,9 +816,12 @@ impl ProxyState {
816
return None;
817
}
818
if let Some(existing) = self.state.instances.get_mut(id) {
819
- if existing.public_key != public_key {
+ let pubkey_changed = existing.public_key != public_key;
820
+ if pubkey_changed {
821
info!("public key changed for instance {id}, new key: {public_key}");
822
existing.public_key = public_key.to_string();
823
+ // Update reg_time so other nodes will pick up the change
824
+ existing.reg_time = SystemTime::now();
825
826
let existing = existing.clone();
827
if self.valid_ip(existing.ip) {
0 commit comments