fn remove_worker_from_pool(worker: &WorkerPublicKey) {
			let pid = WorkerAssignments::<T>::take(worker).expect("Worker must be in a pool; qed.");
			StakePools::<T>::mutate(pid, |value| {
				if let Some(pool) = value {
					pool.remove_worker(worker);
				}
			});
		}
/// Removes a worker from a pool, either intentially or unintentially.
///
/// It assumes the worker is already in a pool.
Removes a worker from a pool, either intentially or unintentially.
It assumes the worker is already in a pool.
Removes a worker from a pool either intentially or unintentially . It assumes the worker is already in a pool .
fn remove_worker_from_pool(worker: &WorkerPublicKey) {
			let pid = WorkerAssignments::<T>::take(worker).expect("Worker must be in a pool; qed.");
			StakePools::<T>::mutate(pid, |value| {
				if let Some(pool) = value {
					pool.remove_worker(worker);
				}
			});
		}
fn remove_worker_from_pool ( worker : & WorkerPublicKey ) { let pid = WorkerAssignments :: < T > :: take ( worker ) . expect ( " " ) ; StakePools :: < T > :: mutate ( pid , | value | { if let Some ( pool ) = value { pool . remove_worker ( worker ) ; } } ) ; }
Removes a worker from a pool, either intentially or unintentially.
Removes a worker from a pool either intentially or unintentially .
worker
&WorkerPublicKey
worker
&WorkerPublicKey