fix: add 3 instances of chromium

This commit is contained in:
2023-12-09 16:22:00 +01:00
parent da102ff4dc
commit 582bcfda24

View File

@@ -40,7 +40,7 @@ pub struct ChromiumCoordinator {
}
impl ChromiumCoordinator {
const NUMBER_OF_INSTANCES: usize = 1; // TODO: make this configurable
const NUMBER_OF_INSTANCES: usize = 3; // TODO: make this configurable
pub async fn new() -> Self {
let instances: Arc<Mutex<Vec<BrowserHolder>>> = Arc::new(Mutex::new(Vec::with_capacity(Self::NUMBER_OF_INSTANCES)));