Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 65 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ant-node"
version = "0.10.0"
version = "0.10.1"
edition = "2021"
authors = ["David Irvine <david.irvine@maidsafe.net>"]
description = "Pure quantum-proof network node for the Autonomi decentralized network"
Expand All @@ -24,7 +24,7 @@ path = "src/bin/ant-devnet/main.rs"

[dependencies]
# Core (provides EVERYTHING: networking, DHT, security, trust, storage)
saorsa-core = "0.23.0"
saorsa-core = "0.23.1"
saorsa-pqc = "0.5"

# Payment verification - autonomi network lookup + EVM payment
Expand Down
2 changes: 1 addition & 1 deletion src/storage/lmdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ fn compute_map_size(db_dir: &Path, reserve: u64) -> Result<usize> {

// The MDB data file may not exist yet on first run.
let mdb_file = db_dir.join("data.mdb");
let current_db_bytes = std::fs::metadata(&mdb_file).map(|m| m.len()).unwrap_or(0);
let current_db_bytes = std::fs::metadata(&mdb_file).map_or(0, |m| m.len());

// available_space excludes the DB file, so we add it back to get the
// total space the DB could occupy while still leaving `reserve` free.
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/data_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ impl TestData {
use std::time::{SystemTime, UNIX_EPOCH};
let nanos = SystemTime::now()
.duration_since(UNIX_EPOCH)
.map(|d| d.as_nanos())
.unwrap_or(0);
.map_or(0, |d| d.as_nanos());
format!("test-{nanos}")
}

Expand Down
Loading