WorkerId changed to type UUID.

This commit is contained in:
Kunal Mohan 2019-12-09 23:42:00 +05:30
parent 5c56e661ca
commit d5475fbc9f
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
9 changed files with 19 additions and 18 deletions

View file

@ -58,6 +58,7 @@ use std::rc::Rc;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use time::precise_time_ns;
use uuid::Uuid;
pub fn prepare_workerscope_init(
global: &GlobalScope,
@ -71,7 +72,7 @@ pub fn prepare_workerscope_init(
from_devtools_sender: devtools_sender,
script_to_constellation_chan: global.script_to_constellation_chan().clone(),
scheduler_chan: global.scheduler_chan().clone(),
worker_id: global.get_next_worker_id(),
worker_id: WorkerId(Uuid::new_v4()),
pipeline_id: global.pipeline_id(),
origin: global.origin().immutable().clone(),
is_headless: global.is_headless(),