Return the IDs of pending peeks targeting the specified replica.
(&self, replica_id: ReplicaId)
| 445 | |
| 446 | /// Return the IDs of pending peeks targeting the specified replica. |
| 447 | fn peeks_targeting(&self, replica_id: ReplicaId) -> impl Iterator<Item = (Uuid, &PendingPeek)> { |
| 448 | self.peeks.iter().filter_map(move |(uuid, peek)| { |
| 449 | if peek.target_replica == Some(replica_id) { |
| 450 | Some((*uuid, peek)) |
| 451 | } else { |
| 452 | None |
| 453 | } |
| 454 | }) |
| 455 | } |
| 456 | |
| 457 | /// Return the IDs of in-progress subscribes targeting the specified replica. |
| 458 | fn subscribes_targeting(&self, replica_id: ReplicaId) -> impl Iterator<Item = GlobalId> + '_ { |