Skip to content

Commit

Permalink
ref: Remove warning about relative urls for chunk uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Oct 20, 2021
1 parent c404284 commit 8131be4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/utils/chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ use std::sync::Arc;
use std::time::Duration;

use failure::Error;
use log::warn;
use parking_lot::RwLock;
use rayon::prelude::*;
use rayon::ThreadPoolBuilder;
use sha1::Digest;

use crate::api::{Api, ChunkUploadOptions, ProgressBarMode};
use crate::utils::http::is_absolute_url;
use crate::utils::progress::{ProgressBar, ProgressStyle};

/// Timeout for polling all assemble endpoints.
Expand Down Expand Up @@ -208,11 +206,6 @@ pub fn upload_chunks(
.num_threads(chunk_options.concurrency as usize)
.build()?;

if !is_absolute_url(&chunk_options.url) {
warn!("Uploading chunks to a relative url is not recommended. Please update your `system.url-prefix`\
configuration inside `config.yml` or use `Root URL` option at https://<sentry-url>/manage/settings/ directly.");
}

pool.install(|| {
batches
.into_par_iter()
Expand Down

0 comments on commit 8131be4

Please sign in to comment.