Skip to content

Commit

Permalink
Removed duplicate slot provider unregister (temporalio#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz authored Apr 23, 2024
1 parent 797371a commit 8efbd22
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ impl Worker {
// Unregister worker from current client, register in new client at the end
let mut worker_key = self.worker_key.lock();
let slot_provider = (*worker_key).and_then(|k| self.wf_client.workers().unregister(k));
if let Some(key) = *worker_key {
self.wf_client.workers().unregister(key);
}
self.wf_client
.replace_client(super::init_worker_client(&self.config, new_client));
*worker_key = slot_provider
Expand Down

0 comments on commit 8efbd22

Please sign in to comment.