Make all experimental storages optional

This commit is contained in:
Igor Katson 2024-05-02 22:08:00 +01:00
parent 0a1d389bc7
commit 0b1499aa10
7 changed files with 81 additions and 14 deletions

View file

@ -1,3 +1,7 @@
/*
A storage middleware that slows down the underlying storage.
*/
use std::time::Duration;
use rand_distr::Distribution;

View file

@ -1,3 +1,7 @@
/*
A storage middleware that logs the time underlying storage operations took.
*/
use crate::storage::{StorageFactory, StorageFactoryExt, TorrentStorage};
#[derive(Clone)]

View file

@ -1,3 +1,10 @@
/*
A storage middleware that caches pieces in memory, so that subsequent reads (for checksumming) are
free.
An example, untested and unproven to be useful.
*/
use std::num::NonZeroUsize;
use anyhow::Context;