File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,8 @@ impl IoHandler<Message> for Handler {
516
516
remote_node_id,
517
517
token
518
518
) ;
519
+ // FIXME the if condition below is a hotfix.
520
+ // `self.remote_node_ids_reverse.write().contains_key(&remote_node_id)` always should be false
519
521
if !self . remote_node_ids_reverse . write ( ) . contains_key ( & remote_node_id) {
520
522
assert_eq ! (
521
523
None ,
@@ -548,6 +550,8 @@ impl IoHandler<Message> for Handler {
548
550
remote_node_id,
549
551
token
550
552
) ;
553
+ // FIXME the if condition below is a hotfix.
554
+ // `self.remote_node_ids_reverse.write().contains_key(&remote_node_id)` always should be false
551
555
if !self . remote_node_ids_reverse . write ( ) . contains_key ( & remote_node_id) {
552
556
assert_eq ! (
553
557
None ,
Original file line number Diff line number Diff line change @@ -477,6 +477,8 @@ impl NetworkExtension<Event> for Extension {
477
477
cinfo ! ( SYNC , "New peer detected #{}" , id) ;
478
478
self . send_status ( id) ;
479
479
480
+ // FIXME the if condition below is a hotfix.
481
+ // `self.connected_nodes.contains(id)` always should be false
480
482
if !self . connected_nodes . contains ( id) {
481
483
let t = self . connected_nodes . insert ( * id) ;
482
484
debug_assert ! ( t, "{} is already added to peer list" , id) ;
@@ -488,6 +490,8 @@ impl NetworkExtension<Event> for Extension {
488
490
request_id : None ,
489
491
} ;
490
492
493
+ // FIXME the if condition below is a hotfix.
494
+ // `self.requests.contains(id)` always should be false
491
495
if !self . requests . contains_key ( id) {
492
496
let t = self . requests . insert ( * id, Vec :: new ( ) ) ;
493
497
debug_assert_eq ! ( None , t) ;
You can’t perform that action at this time.
0 commit comments