increase subscriber channel size

This commit is contained in:
Aiden McClelland
2021-06-15 13:09:46 -06:00
parent 40b8b2c230
commit 13edf0279d

View File

@@ -206,7 +206,7 @@ pub struct PatchDb {
}
impl PatchDb {
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 {
store: Arc::new(RwLock::new(Store::open(path).await?)),