mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
rm more generics when useless (#12595)
This commit is contained in:
@ -231,13 +231,13 @@ mod tests {
|
||||
use crate::wal::{cache::CachedBlock, Wal};
|
||||
|
||||
fn read_notifications(wal: &Wal) -> eyre::Result<Vec<ExExNotification>> {
|
||||
let Some(files_range) = wal.inner.storage.files_range()? else { return Ok(Vec::new()) };
|
||||
|
||||
wal.inner
|
||||
.storage
|
||||
.iter_notifications(files_range)
|
||||
.map(|entry| Ok(entry?.2))
|
||||
.collect::<eyre::Result<_>>()
|
||||
wal.inner.storage.files_range()?.map_or(Ok(Vec::new()), |range| {
|
||||
wal.inner
|
||||
.storage
|
||||
.iter_notifications(range)
|
||||
.map(|entry| entry.map(|(_, _, n)| n))
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
fn sort_committed_blocks(
|
||||
|
||||
Reference in New Issue
Block a user