check_close_group bool was never used, and only effect was updating self for use in the call of that fn.
This pull request primarily focuses on removing the concept of a 'close group' from the SwarmDriver in the sn_networking module. The 'close group' was previously used to keep track of the closest peers to our PeerId, but it has now been removed from the NetworkBuilder and SwarmDriver structures. This change also leads to the removal of the check_for_change_in_our_close_group method, which was used to update the 'close group'. The method was called in several places throughout the code, and these calls have been removed as part of this pull request.
check_close_group bool was never used, and only effect was updating self for use in the call of that fn.
This pull request primarily focuses on removing the concept of a 'close group' from the
SwarmDriver
in thesn_networking
module. The 'close group' was previously used to keep track of the closest peers to our PeerId, but it has now been removed from theNetworkBuilder
andSwarmDriver
structures. This change also leads to the removal of thecheck_for_change_in_our_close_group
method, which was used to update the 'close group'. The method was called in several places throughout the code, and these calls have been removed as part of this pull request.Here are the key changes:
Removal of 'close group':
sn_networking/src/driver.rs
: Removedclose_group
from theNetworkBuilder
andSwarmDriver
structures. [1] [2]Removal of 'close group' update method:
sn_networking/src/event/mod.rs
: Removed thecheck_for_change_in_our_close_group
method fromSwarmDriver
.Removal of 'close group' update calls:
sn_networking/src/cmd.rs
: Removed the call tocheck_for_change_in_our_close_group
inSwarmDriver
.sn_networking/src/event/kad.rs
: Removed the call tocheck_for_change_in_our_close_group
inSwarmDriver
.sn_networking/src/event/swarm.rs
: Removed the calls tocheck_for_change_in_our_close_group
inSwarmDriver
. [1] [2]Cleanup of unused imports:
sn_networking/src/event/mod.rs
: Removed unused imports related to the 'close group' concept. [1] [2]