Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions proxy_agent/src/key_keeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ impl KeyKeeper {
}

let state = status.get_secure_channel_state();
Comment thread
ZhidongPeng marked this conversation as resolved.
let secure_channel_state_updated = self
.key_keeper_shared_state
.update_current_secure_channel_state(state.to_string())
.await;

// check if need fetch the key
if state != DISABLE_STATE
&& (status.keyGuid.is_none() // key has not latched yet
Expand Down Expand Up @@ -523,12 +528,8 @@ impl KeyKeeper {
}
}

// update the current secure channel state if different
match self
.key_keeper_shared_state
.update_current_secure_channel_state(state.to_string())
.await
{
// update redirect policy if current secure channel state updated
match secure_channel_state_updated {
Ok(updated) => {
if updated {
// update the redirector policy map
Expand Down
Loading