add rocksdb parallelism threads config option

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-04 20:42:09 -05:00 committed by June
parent 9251727d57
commit 0352ea7dda
4 changed files with 35 additions and 11 deletions

View file

@ -463,6 +463,10 @@ impl Service<'_> {
self.config.rocksdb_optimize_for_spinning_disks
}
pub fn rocksdb_parallelism_threads(&self) -> usize {
self.config.rocksdb_parallelism_threads
}
pub fn prevent_media_downloads_from(&self) -> &[OwnedServerName] {
&self.config.prevent_media_downloads_from
}