/// Creates a new downloader that runs all downloads in the given remote thread.
Creates a new downloader that runs all downloads in the given remote thread.
Creates a new downloader that runs all downloads in the given remote thread .
pub fn new(config: Arc<Config>) -> Arc<Self> {
        let trusted_client = crate::utils::http::create_client(&config, true);
        let restricted_client = crate::utils::http::create_client(&config, false);
        let Config {
            connect_timeout,
            streaming_timeout,
            ..
        } = *config;
        Arc::new(Self {
            config,
            sentry: sentry::SentryDownloader::new(
                trusted_client,
                connect_timeout,
                streaming_timeout,
            ),
            http: http::HttpDownloader::new(
                restricted_client.clone(),
                connect_timeout,
                streaming_timeout,
            ),
            s3: s3::S3Downloader::new(connect_timeout, streaming_timeout),
            gcs: gcs::GcsDownloader::new(restricted_client, connect_timeout, streaming_timeout),
            fs: filesystem::FilesystemDownloader::new(),
        })
    }
pub fn new ( config : Arc < Config > ) -> Arc < Self > { let trusted_client = crate :: utils :: http :: create_client ( & config , true ) ; let restricted_client = crate :: utils :: http :: create_client ( & config , false ) ; let Config { connect_timeout , streaming_timeout , .. } = * config ; Arc :: new ( Self { config , sentry : sentry :: SentryDownloader :: new ( trusted_client , connect_timeout , streaming_timeout , ) , http : http :: HttpDownloader :: new ( restricted_client . clone ( ) , connect_timeout , streaming_timeout , ) , s3 : s3 :: S3Downloader :: new ( connect_timeout , streaming_timeout ) , gcs : gcs :: GcsDownloader :: new ( restricted_client , connect_timeout , streaming_timeout ) , fs : filesystem :: FilesystemDownloader :: new ( ) , } ) }
Creates a new downloader that runs all downloads in the given remote thread.
Creates a new downloader that runs all downloads in the given remote thread .
config
Arc<Config>