- match self.offchain_monitor_updates.lock().unwrap().remove(&funding_txo) {
- Some(_) => {},
- None => {
- // If the channel was not in the offchain_monitor_updates map, it should be in the
- // chain_sync_monitor_persistences map.
- self.chain_sync_monitor_persistences.lock().unwrap().retain(|x| x != &funding_txo);
- }
- };