Look up the link for `db_id` without removing it.
(&self, db_id: DatabaseId)
| 87 | |
| 88 | /// Look up the link for `db_id` without removing it. |
| 89 | pub fn get(&self, db_id: DatabaseId) -> Option<Arc<CrossClusterLink>> { |
| 90 | let r = self.entries.read().unwrap_or_else(|p| p.into_inner()); |
| 91 | r.get(&db_id.as_u64()).map(|e| e.link.clone()) |
| 92 | } |
| 93 | |
| 94 | /// All database ids currently tracked, for iteration during server shutdown. |
| 95 | pub fn all_ids(&self) -> Vec<DatabaseId> { |