Remove origin parameter from Worker::handle_message

This commit is contained in:
Kunal Mohan 2020-01-04 02:22:43 +05:30
parent 3892d85fe0
commit 0692a26bcc
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
3 changed files with 3 additions and 20 deletions

View file

@ -538,9 +538,8 @@ impl DedicatedWorkerGlobalScope {
let worker = self.worker.borrow().as_ref().unwrap().clone();
let global_scope = self.upcast::<GlobalScope>();
let pipeline_id = global_scope.pipeline_id();
let origin = global_scope.origin().immutable().ascii_serialization();
let task = Box::new(task!(post_worker_message: move || {
Worker::handle_message(worker, origin, data);
Worker::handle_message(worker, data);
}));
self.parent_sender
.send(CommonScriptMsg::Task(