Skip to content
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

Add sizes to fetch queue #1694

Merged
merged 2 commits into from Dec 5, 2022
Merged

Add sizes to fetch queue #1694

merged 2 commits into from Dec 5, 2022

Conversation

maackle
Copy link
Member

@maackle maackle commented Dec 2, 2022

Summary

Adds sizes to op hashes sent via historical gossip.

TODO:

  • CHANGELOG(s) updated with appropriate info
  • Just before pressing the merge button, ensure new entries to CHANGELOG(s) are still under the UNRELEASED heading

Comment on lines +42 to +50
/// The space this op belongs to
pub space: KSpace,

/// The source to fetch the op from
pub source: FetchSource,

/// The approximate size of the item
pub size: Option<RoughInt>,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just moved space and source into this struct (they were supplied independently before), but size is the new addition here to the push parameters.

@maackle maackle marked this pull request as ready for review December 5, 2022 18:18
@maackle maackle requested a review from neonphog December 5, 2022 18:18
@@ -18,7 +18,7 @@ use holochain::{
use holochain_p2p::*;
use holochain_sqlite::db::*;
use kitsune_p2p::agent_store::AgentInfoSigned;
use kitsune_p2p::gossip::sharded_gossip::test_utils::{check_ops_boom, create_agent_bloom};
use kitsune_p2p::gossip::sharded_gossip::test_utils::{check_ops_bloom, create_agent_bloom};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

Copy link
Contributor

@neonphog neonphog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A'ight, looks good... I'll need to duplicate some of this on the publish side where I'm only pushing hashes will need to include the size as well.

@maackle maackle merged commit 20f3dde into fetch-queue Dec 5, 2022
@maackle maackle deleted the fetch-queue-sizes branch December 5, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants