Skip to main content

resolve_actor

Function resolve_actor 

Source
pub fn resolve_actor(actor_id: Option<&str>) -> ActorRef
Expand description

Resolve an optional configured/request actor id string into the ActorRef used for gate checks, NamespaceToken minting, and comm attribution.

Preserves the pre-existing behavior at every call site: a non-empty string (after trimming) becomes ActorRef::new("actor", id) using the original (untrimmed) string; None or an all-whitespace string becomes ActorRef::anonymous().