Skip to main content

lower_actor_seam_ir

Function lower_actor_seam_ir 

Source
pub fn lower_actor_seam_ir(
    handler: &Handler,
    actors: &HashMap<String, ActorDecl>,
) -> ActorSeamIr
Expand description

#1187’s slice 3: a handler’s resolved actor-verification seam — the same “narrow, standalone reader of already-resolved data” precedent body_writes_state/lower_service_handler_signature_ir established, applied to bynk-check’s own five actor-seam resolvers (bynk-check/src/actors.rs) instead of a full IrHandler assembly. ActorSeamIr’s own doc comment has the full grounding for the priority order and for the deliberately-missing Signature variant.

Replaces the hand-duplicated “try N resolvers, branch on which returned Some” call sites this slice converts: emit_service (emitter/emit.rs) and emit_worker_compose’s HTTP-dispatch match (emitter/workers.rs). Deliberately does not yet replace every caller of the five resolvers — secrets.rs‘s declared_secrets unions all matching seams’ secrets rather than picking one (a different shape this enum doesn’t model), and the remaining call sites (emitter/workers_entry.rs, emitter/workers.rs’s other two sites, emitter/emit.rs’s any_service_binds_caller/emit_make_surface/ ws_open_hosts_for, project/tests_emit.rs) each call exactly one resolver with nothing to collapse against — converting them to build a five-variant enum just to immediately match out one arm would add indirection without removing any real duplication.