Skip to content

Commit

Permalink
Merge branch 'main' into evol/refacto_logging_add_json
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Dec 9, 2024
2 parents f34f337 + 9bc35f4 commit 45ac2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/subspace-gateway/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
1 change: 1 addition & 0 deletions crates/subspace-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 45ac2f1

Please sign in to comment.