diff --git a/Cargo.lock b/Cargo.lock index 9822a13..aaf3aec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2113,6 +2113,7 @@ dependencies = [ "log", "pkarr", "pubky-common 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pubky-testnet 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest", "thiserror 2.0.11", "tokio", @@ -2278,6 +2279,24 @@ dependencies = [ "url", ] +[[package]] +name = "pubky-testnet" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c758efdca49631891a38a12febf38011591ae437c697e88e51a14206a060d1e1" +dependencies = [ + "anyhow", + "http-relay 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "mainline", + "pkarr-relay", + "pubky 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pubky-common 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pubky-homeserver 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio", + "tracing-subscriber", + "url", +] + [[package]] name = "pubky-timestamp" version = "0.4.0" diff --git a/pubky-homeserver/src/core/database/tables/entries.rs b/pubky-homeserver/src/core/database/tables/entries.rs index d3f3d07..547f496 100644 --- a/pubky-homeserver/src/core/database/tables/entries.rs +++ b/pubky-homeserver/src/core/database/tables/entries.rs @@ -486,7 +486,7 @@ mod tests { let mut iter = entry.read_content(&db, &rtxn).unwrap(); while let Some(Ok(chunk)) = iter.next() { - blob.extend_from_slice(&chunk); + blob.extend_from_slice(chunk); } } @@ -528,7 +528,7 @@ mod tests { let mut iter = entry.read_content(&db, &rtxn).unwrap(); while let Some(Ok(chunk)) = iter.next() { - blob.extend_from_slice(&chunk); + blob.extend_from_slice(chunk); } } diff --git a/pubky/Cargo.toml b/pubky/Cargo.toml index 074ec57..fd36501 100644 --- a/pubky/Cargo.toml +++ b/pubky/Cargo.toml @@ -49,6 +49,7 @@ web-sys = "0.3.77" [dev-dependencies] anyhow = "1.0.95" futures-lite = "2.6.0" +pubky-testnet = "0.1.0" tokio = "1.43.0" tracing-subscriber = "0.3.19"