diff --git a/crates/subspace-gateway/src/commands.rs b/crates/subspace-gateway/src/commands.rs index 439add72bf..3c7325354a 100644 --- a/crates/subspace-gateway/src/commands.rs +++ b/crates/subspace-gateway/src/commands.rs @@ -31,6 +31,11 @@ pub const DEFAULT_MAX_SIZE: usize = 5 * 1024 * 1024; /// Multiplier on top of outgoing connections number for piece downloading purposes const PIECE_PROVIDER_MULTIPLIER: usize = 10; +/// The default size limit, based on the maximum block size in some domains. +pub const DEFAULT_MAX_SIZE: usize = 5 * 1024 * 1024; +/// Multiplier on top of outgoing connections number for piece downloading purposes +const PIECE_PROVIDER_MULTIPLIER: usize = 10; + /// Commands for working with a gateway. #[derive(Debug, Parser)] #[clap(about, version)] diff --git a/crates/subspace-gateway/src/main.rs b/crates/subspace-gateway/src/main.rs index e2ee1fef70..65ae756983 100644 --- a/crates/subspace-gateway/src/main.rs +++ b/crates/subspace-gateway/src/main.rs @@ -8,6 +8,7 @@ mod piece_validator; use crate::commands::{raise_fd_limit, set_exit_on_panic, Command}; use clap::Parser; use subspace_logging::init_logger; +use tracing::info; #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;