Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard committed Jul 2, 2024
1 parent 3fb98b9 commit 9d78814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/p2p/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use std::time::{Duration, Instant};
use log::{debug, error, warn};
use thiserror::Error;
use tokio::select;
use tokio::sync::broadcast::error::{RecvError, SendError};
use tokio::sync::{broadcast, mpsc, Mutex};
use tokio::sync::broadcast::error::{RecvError, SendError};
use tokio::time::sleep;

use crate::server::p2p::messages::{ValidateBlockRequest, ValidateBlockResult};
Expand Down
1 change: 1 addition & 0 deletions src/server/p2p/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ impl<S> Service<S>
debug!(target: LOG_TARGET, "Share chain sync response: {response:?}");
if let Err(error) = self.share_chain.submit_blocks(response.blocks, true).await {
error!(target: LOG_TARGET, "Failed to add synced blocks to share chain: {error:?}");
self.sync_share_chain().await;
}
}

Expand Down

0 comments on commit 9d78814

Please sign in to comment.