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

feat: all records are Quorum::All once more #776

Merged
merged 2 commits into from Sep 27, 2023

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Sep 27, 2023

Description

Summary generated by Reviewpad on 27 Sep 23 10:29 UTC

This pull request includes changes in multiple files. Here are the key changes:

  • In sn_client/src/api.rs, the function get_network_concurrency_permit has been removed.
  • In sn_client/src/api.rs, the function store_chunk has been updated to remove the optional parameter optional_permit.
  • In sn_client/src/api.rs, the function get_chunk has been updated to remove the optional parameter optional_permit.
  • In sn_client/src/file_apis.rs, the function store_chunk has been updated to remove the optional parameter optional_permit.
  • In sn_client/src/file_apis.rs, the function get_local_payment_and_upload_chunk has been updated to remove the optional parameter optional_permit.
  • In sn_client/src/register.rs, the function put_register has been updated to remove the optional parameter quorum.
  • In sn_networking/src/cmd.rs, the variant PutRecord of the SwarmCmd enum has been updated to remove the field quorum.
  • In sn_networking/src/driver.rs, the function NetworkBuilder::build_kademlia has been updated to remove the caching configuration.
  • In sn_networking/src/lib.rs, the function Network::put_record has been updated to remove the parameters optional_permit and quorum.
  • In sn_networking/src/lib.rs, the function Network::put_record_once has been updated to remove the parameters starting_permit and quorum.

Please review these changes and ensure that they align with the intended functionality and requirements.

@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Sep 27, 2023
@reviewpad reviewpad bot added Medium Medium sized PR and removed Small Pull request is small labels Sep 27, 2023
let mut _permit = starting_permit;
async fn put_record_once(&self, record: Record, verify_store: Option<Record>) -> Result<()> {
// get permit if semaphore supplied
let _permit = if let Some(semaphore) = self.concurrency_limiter.clone() {
Copy link
Member

Choose a reason for hiding this comment

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

just to confirm so here we no longer consume the fetched permit, but leave it to be dropped when the whole function call completed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we hold it until the PUT is done, which is what was happening before with an optionally passed permit.

(which should have just be grabbed above)

@joshuef joshuef added this pull request to the merge queue Sep 27, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 27, 2023
@joshuef joshuef added this pull request to the merge queue Sep 27, 2023
Merged via the queue into maidsafe:main with commit 4f5d54c Sep 27, 2023
31 checks passed
@joshuef joshuef deleted the RemoveCaching branch September 27, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium sized PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants