Skip to content

Commit

Permalink
Fix peers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Nov 21, 2024
1 parent dc6f620 commit a26ca26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/sage/src/endpoints/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl Sage {
.await?;

self.switch_wallet().await?;
self.setup_peers().await?;

Ok(SetNetworkIdResponse {})
}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub async fn initialize(state: State<'_, AppState>) -> Result<()> {

tokio::spawn(async move {
loop {
sleep(Duration::from_secs(5)).await;
sleep(Duration::from_secs(3)).await;

let app_state = app_state.lock().await;

Expand Down

0 comments on commit a26ca26

Please sign in to comment.