worker_task: new_thread() - remove unused tokio channel

This commit is contained in:
Dietmar Maurer 2020-08-12 08:41:43 +02:00
parent c5ac2b9ddd
commit 639419b049
1 changed files with 0 additions and 5 deletions

View File

@ -473,8 +473,6 @@ impl WorkerTask {
{
println!("register worker thread");
let (p, c) = oneshot::channel::<()>();
let worker = WorkerTask::new(worker_type, worker_id, userid, to_stdout)?;
let upid_str = worker.upid.to_string();
@ -495,11 +493,8 @@ impl WorkerTask {
};
worker.log_result(&result);
p.send(()).unwrap();
});
tokio::spawn(c.map(|_| ()));
Ok(upid_str)
}