This commit is contained in:
郭光华
2019-09-03 16:29:09 +08:00
committed by Bastian Köcher
parent 8c38f05517
commit 512ca35c62
@@ -49,7 +49,7 @@ lazy_static::lazy_static! {
static ref HOSTS: [Mutex<ValidationHost>; NUM_HOSTS] = Default::default(); static ref HOSTS: [Mutex<ValidationHost>; NUM_HOSTS] = Default::default();
} }
/// Validation worker process entry point. Runs a loop waiting for canidates to validate /// Validation worker process entry point. Runs a loop waiting for candidates to validate
/// and sends back results via shared memory. /// and sends back results via shared memory.
pub fn run_worker(mem_id: &str) -> Result<(), String> { pub fn run_worker(mem_id: &str) -> Result<(), String> {
let mut memory = match SharedMem::open(mem_id) { let mut memory = match SharedMem::open(mem_id) {