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
fix(node): implementation of RecordStore::records() libp2p trait fn was not returning all records #271
Conversation
AI-Generated Summary: This pull request modifies the implementation of the |
Reviewpad Report
|
d4ee9c1
to
2ec7c61
Compare
AI-Generated Summary: This pull request changes the |
2ec7c61
to
8200069
Compare
AI-Generated Summary: This pull request includes a change in the implementation of the |
I think, while you're rigth, our impl is off trait. It's probably what we want just now. And we should try and figure out how we want to push replication going forwards. Do we want to stay w/ that logic in libp2p (ideally yes). And if so, what do we need to do to libp2p to make it work for us (I'm thinking PRing upstream). For clarity: As I understand things, libp2p pulls in all records every replication interval and sends them to all relevant nodes. Regardless if they have them or other ndoes might do this. For us, with larger So one option is to just dial back node size and record count. Spread things thinner so to speak. If we don't want to do that, something like the |
…as not returning all records
8200069
to
2685439
Compare
AI-Generated Summary: This pull request includes two patches:
|
2685439
to
1a2d8a8
Compare
AI-Generated Summary: This pull request includes two patches:
|
1a2d8a8
to
82933b0
Compare
AI-Generated Summary: This pull request includes two patches:
|
82933b0
to
6ebb398
Compare
AI-Generated Summary: This pull request includes two patches:
|
type Item = Cow<'a, Record>; | ||
|
||
fn next(&mut self) -> Option<Self::Item> { | ||
for key in self.keys.by_ref() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this always return the first
one?
records.push(record); | ||
} | ||
RecordsIterator { | ||
keys: self.records.iter(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if decided no longer using replication_records
, then it shall be removed totally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replication_records
I thiiink this could be useful in a follow up PR? Although, that's a PR you're looking at @maqi so let me know what you think
Superseded by #282 |
No description provided.