Make all experimental storages optional
This commit is contained in:
parent
0a1d389bc7
commit
0b1499aa10
7 changed files with 81 additions and 14 deletions
|
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
A storage middleware that slows down the underlying storage.
|
||||
*/
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use rand_distr::Distribution;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
A storage middleware that logs the time underlying storage operations took.
|
||||
*/
|
||||
|
||||
use crate::storage::{StorageFactory, StorageFactoryExt, TorrentStorage};
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue