Use multiple retransmit stage threads/sockets (#6279)

This commit is contained in:
sakridge
2019-10-10 13:24:03 -07:00
committed by GitHub
parent 570b98c7bc
commit 1b775044f7
6 changed files with 158 additions and 74 deletions

View File

@@ -274,9 +274,10 @@ impl Validator {
.expect("Failed to clone repair socket"),
retransmit: node
.sockets
.retransmit
.try_clone()
.expect("Failed to clone retransmit socket"),
.retransmit_sockets
.iter()
.map(|s| s.try_clone().expect("Failed to clone retransmit socket"))
.collect(),
fetch: node
.sockets
.tvu
@@ -378,7 +379,7 @@ impl Validator {
);
info!(
"local retransmit address: {}",
node.sockets.retransmit.local_addr().unwrap()
node.sockets.retransmit_sockets[0].local_addr().unwrap()
);
}
}