increase subscriber channel size

This commit is contained in:
Aiden McClelland
2021-06-15 13:09:46 -06:00
committed by Aiden McClelland
parent fb52c53552
commit b5cf9f28ba

View File

@@ -206,7 +206,7 @@ pub struct PatchDb {
} }
impl PatchDb { impl PatchDb {
pub async fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error> { pub async fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error> {
let (subscriber, _) = tokio::sync::broadcast::channel(16); // TODO: make this unbounded let (subscriber, _) = tokio::sync::broadcast::channel(512); // TODO: make this unbounded
Ok(PatchDb { Ok(PatchDb {
store: Arc::new(RwLock::new(Store::open(path).await?)), store: Arc::new(RwLock::new(Store::open(path).await?)),