-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(kad): enable putting Record without publisher #6177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| - minimized #6176 | ||
|
|
||
| ## 0.49.0 | ||
|
|
||
| - Remove no longer constructed GetRecordError::QuorumFailed. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -562,7 +562,11 @@ fn get_record_not_found() { | |
| /// is equal to the configured replication factor. | ||
| #[test] | ||
| fn put_record() { | ||
| fn prop(records: Vec<Record>, seed: Seed, filter_records: bool, drop_records: bool) { | ||
| fn prop(mut records: Vec<Record>, seed: Seed, filter_records: bool, drop_records: bool) { | ||
| tracing::trace!("remove records without a publisher"); | ||
| // this test relies on counting republished `Record` against `records.len()` | ||
| records.retain(|r| r.publisher.is_some()); | ||
|
||
|
|
||
| let mut rng = StdRng::from_seed(seed.0); | ||
| let replication_factor = | ||
| NonZeroUsize::new(rng.gen_range(1..(K_VALUE.get() / 2) + 1)).unwrap(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.