Skip to content

Commit

Permalink
bugfix - remove deadlock when pinging bootnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lithp committed Oct 15, 2021
1 parent 54e9799 commit f32c07f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trin-state/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ impl StateNetwork {
// Trigger bonding with bootnodes, at both the base layer and portal overlay.
// The overlay ping via talkreq will trigger a session at the base layer, then
// a session on the (overlay) portal network.
for enr in rw_read!(self.overlay.discovery).discv5.table_entries_enr() {
let table_entries = rw_read!(self.overlay.discovery).discv5.table_entries_enr();
for enr in table_entries {
debug!("Attempting bond with bootnode {}", enr);
let ping_result = self
.overlay
Expand Down

0 comments on commit f32c07f

Please sign in to comment.