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(faucet_server): download and upload gutenberger book part by part #1818

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

maqi
Copy link
Member

@maqi maqi commented Jun 3, 2024

Description

download and upload gutenberger book part by part to avoid choking the faucet node.

Related Issue

Fixes #<issue_number> (if applicable).

Type of Change

Please mark the types of changes made in this pull request.

  • Bug fix (non-breaking change which fixes an issue)

@maqi maqi force-pushed the upload_book_initially branch 2 times, most recently from aa71a12 to 185b1e8 Compare June 3, 2024 14:10
}

pub(crate) async fn download_book(client: &Client, book_id: u32) -> Result<Vec<u8>> {
let url = format!("http://www.gutenberg.org/ebooks/{book_id}.txt.utf-8");

Check warning

Code scanning / devskim

An HTTP-based URL without TLS was detected. Warning

Insecure URL
@maqi maqi force-pushed the upload_book_initially branch from 185b1e8 to 47e9cad Compare June 3, 2024 14:14
@maqi maqi force-pushed the upload_book_initially branch from 47e9cad to 04a020b Compare June 3, 2024 14:22
@joshuef joshuef enabled auto-merge June 4, 2024 04:23
@joshuef joshuef added this pull request to the merge queue Jun 4, 2024
@joshuef joshuef removed this pull request from the merge queue due to a manual request Jun 4, 2024
@joshuef joshuef merged commit bcac4b8 into maidsafe:main Jun 4, 2024
40 checks passed
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.

2 participants