nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

commit 73797f160e67e5e98f201e56f1af731108b54032
parent b89b693744e054f309f7b52e72f65b5e5b7ad05f
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  9 Apr 2025 13:20:52 -0700

test: fix misc lints

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/relay.rs | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/relay.rs b/src/relay.rs @@ -101,7 +101,6 @@ impl Drop for NoteRelays<'_> { mod tests { use super::*; use crate::{config::Config, test_util, IngestMetadata, Ndb}; - use tokio::time::{self, sleep, Duration}; #[test] fn process_event_relays_works() { @@ -126,7 +125,7 @@ mod tests { let id = hex::decode("702555e52e82cc24ad517ba78c21879f6e47a7c0692b9b20df147916ae8731a3") .expect("hex id"); - let mut txn = Transaction::new(&ndb).expect("txn"); + let txn = Transaction::new(&ndb).expect("txn"); let id_bytes: [u8; 32] = id.try_into().expect("id bytes"); let note = ndb.get_note_by_id(&txn, &id_bytes).expect("note");