diff options
Diffstat (limited to 'src/worker_ws.rs')
-rw-r--r-- | src/worker_ws.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker_ws.rs b/src/worker_ws.rs index 89dcbda..8c502cd 100644 --- a/src/worker_ws.rs +++ b/src/worker_ws.rs @@ -255,7 +255,7 @@ impl State { self.send_to_worker( w, WorkerResponse::Work { - data: self.metadata[&key].clone(), + data: self.metadata.get(&key).cloned().unwrap_or_default(), key, }, ); |