MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / peeks_targeting

Method peeks_targeting

src/compute-client/src/controller/instance.rs:447–455  ·  view source on GitHub ↗

Return the IDs of pending peeks targeting the specified replica.

(&self, replica_id: ReplicaId)

Source from the content-addressed store, hash-verified

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> + '_ {

Callers 1

remove_replicaMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected