feat(client): use futures stream to speed up downloads #1155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary generated by Reviewpad on 08 Jan 24 18:39 UTC
This pull request contains the following changes:
In the
error.rs
file:EmptyDataMap
to theError
enum. This variant represents the error of an empty data map being provided.In the
sn_client/src/files/mod.rs
file:chunks
module is now importing only theError
type from theself_encryption
module, instead of theDataMapLevel
andSmallFile
types.futures::{future::join_all, stream::FuturesOrdered, StreamExt}
.itertools::Itertools
.self_encryption::{self, decrypt_full_set, ChunkInfo, DataMap, EncryptedChunk, StreamSelfDecryptor, MIN_ENCRYPTABLE_BYTES}
. Removed thedecrypt_full_set
function and typesChunkInfo
,DataMap
,EncryptedChunk
, andStreamSelfDecryptor
. Only theMIN_ENCRYPTABLE_BYTES
constant remains.std::time::Instant
.tokio::task
.tracing::trace
.xor_name::XorName
.FilesApi
implementation, includingread_from
,read_all
,unpack_chunk
,seek
, andtry_get_chunks
.