mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +00:00
cargo fmt
This commit is contained in:
parent
17cf054a9b
commit
f8f5b67266
@ -76,7 +76,10 @@ impl MineRangeConfig {
|
|||||||
(context.flow_length.as_u64() / SECTORS_PER_LOAD as u64) * SECTORS_PER_LOAD as u64;
|
(context.flow_length.as_u64() / SECTORS_PER_LOAD as u64) * SECTORS_PER_LOAD as u64;
|
||||||
|
|
||||||
let num_shards = 1u64 << self.shard_config.miner_shard_mask().count_zeros();
|
let num_shards = 1u64 << self.shard_config.miner_shard_mask().count_zeros();
|
||||||
let mining_length = std::cmp::min(minable_length, (SECTORS_PER_MAX_MINING_RANGE as u64).saturating_mul(num_shards));
|
let mining_length = std::cmp::min(
|
||||||
|
minable_length,
|
||||||
|
(SECTORS_PER_MAX_MINING_RANGE as u64).saturating_mul(num_shards),
|
||||||
|
);
|
||||||
|
|
||||||
let start_position = std::cmp::min(self_start_position, minable_length - mining_length);
|
let start_position = std::cmp::min(self_start_position, minable_length - mining_length);
|
||||||
let start_position =
|
let start_position =
|
||||||
|
Loading…
Reference in New Issue
Block a user