Run the dial task whenever we have a peer disconnect

This commit is contained in:
Luke Parker
2025-01-07 15:36:06 -05:00
parent 82e753db30
commit d9e9887d34
2 changed files with 26 additions and 1 deletions

View File

@@ -128,6 +128,9 @@ impl Validators {
/// Update the view of the validators.
///
/// This minimizes the time an exclusive lock is held over the validators to minimize the
/// disruption to functioning.
///
/// Returns all validators removed from the active validator set.
pub(crate) async fn update_shared_validators(
validators: &Arc<RwLock<Validators>>,