From 67dbb6825f5de1c5dfea55685479be41d7232bb8 Mon Sep 17 00:00:00 2001 From: parazyd Date: Sun, 3 Apr 2022 20:11:30 +0200 Subject: [PATCH] CI: Fix test units. --- src/blockchain2/blockstore.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/blockchain2/blockstore.rs b/src/blockchain2/blockstore.rs index 35695bb97..a3425fd7e 100644 --- a/src/blockchain2/blockstore.rs +++ b/src/blockchain2/blockstore.rs @@ -114,17 +114,17 @@ impl BlockStore { } /// Retrieve an iterator over a range of blockhashes. - /// Usage: - /// ``` - /// let mut r = get_range(foo, bar); - /// while let Some((k, v)) = r.next() { - /// let hash_bytes: [u8; 32] = k.as_ref().try_into().unwrap(); - /// let block = deserialize(&v)?; - /// } - /// ``` /// When iterating, take care of potential memory limitations if you're /// storing results in memory. For blockchain sync, it should probably /// be done in chunks. + // Usage: + // ``` + // let mut r = get_range(foo, bar); + // while let Some((k, v)) = r.next() { + // let hash_bytes: [u8; 32] = k.as_ref().try_into().unwrap(); + // let block = deserialize(&v)?; + // } + // ``` pub fn get_range(&self, start: blake3::Hash, end: blake3::Hash) -> sled::Iter { let start: &[u8] = start.as_bytes().as_ref(); let end: &[u8] = end.as_bytes().as_ref();