fix: add 3 instances of chromium

This commit is contained in:
Ondrej Vlach 2023-12-09 16:22:00 +01:00
parent da102ff4dc
commit 582bcfda24
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70

View File

@ -40,7 +40,7 @@ pub struct ChromiumCoordinator {
} }
impl 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 { pub async fn new() -> Self {
let instances: Arc<Mutex<Vec<BrowserHolder>>> = Arc::new(Mutex::new(Vec::with_capacity(Self::NUMBER_OF_INSTANCES))); let instances: Arc<Mutex<Vec<BrowserHolder>>> = Arc::new(Mutex::new(Vec::with_capacity(Self::NUMBER_OF_INSTANCES)));