Skip to content

Commit

Permalink
fix(agent): invalidate storage info cache on reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshiest committed Apr 8, 2024
1 parent 147ce8b commit 1a226e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/snops-agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ async fn main() {
'connection: {
let mut req = ws_uri.to_owned().into_client_request().unwrap();

// invalidate env info cache
state.env_to_storage.write().await.clear();

// attach JWT if we have one
{
let jwt = state.jwt.lock().expect("failed to acquire jwt");
Expand Down

0 comments on commit 1a226e7

Please sign in to comment.