File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -547,14 +547,9 @@ impl Runtime {
547
547
pub fn update_locators ( & self ) -> bool {
548
548
let mut locators = self . state . locators . write ( ) . unwrap ( ) ;
549
549
let new_locators = self . manager ( ) . get_locators ( ) ;
550
- if new_locators == * locators {
550
+ if are_locators_equal ( & locators, & new_locators ) {
551
551
return false ;
552
552
}
553
-
554
- tracing:: info!(
555
- "New locators: {new_locators:?}, previously: {:?}" ,
556
- * locators
557
- ) ;
558
553
if tracing:: enabled!( tracing:: Level :: INFO ) {
559
554
for locator in & new_locators {
560
555
if !locators. contains ( locator) {
@@ -1040,3 +1035,9 @@ impl Runtime {
1040
1035
router. tables . hat_code . links_info ( & tables)
1041
1036
}
1042
1037
}
1038
+
1039
+ fn are_locators_equal ( a : & [ Locator ] , b : & [ Locator ] ) -> bool {
1040
+ a. len ( ) == b. len ( )
1041
+ && HashSet :: < & Locator , std:: hash:: RandomState > :: from_iter ( a. iter ( ) )
1042
+ == HashSet :: from_iter ( b. iter ( ) )
1043
+ }
You can’t perform that action at this time.
0 commit comments