availability recovery type name clarifications (#4203)

* minor changes

* fmt

* rename to expressive types

* chore: fixup

* chore: remove `Data` prefixes

* address review comments

* guide items

* sourcer -> source, add `FromValdiators` suffix
This commit is contained in:
Bernhard Schuster
2021-11-08 14:43:23 +01:00
committed by GitHub
parent 1193a5554b
commit edac78d03c
5 changed files with 246 additions and 217 deletions
@@ -1273,7 +1273,7 @@ fn does_not_query_local_validator() {
fn parallel_request_calculation_works_as_expected() {
let num_validators = 100;
let threshold = recovery_threshold(num_validators).unwrap();
let mut phase = RequestChunksPhase::new(100);
let mut phase = RequestChunksFromValidators::new(100);
assert_eq!(phase.get_desired_request_count(threshold), threshold);
phase.error_count = 1;
phase.total_received_responses = 1;