Skip to main content

phase_group_binding_collisions

Function phase_group_binding_collisions 

Source
pub fn phase_group_binding_collisions(
    worker_groups: &WorkerGroups,
    parsed: &[ParsedFile],
    groups: &BTreeMap<String, Vec<usize>>,
    bindings: &BTreeMap<String, Vec<WorkerBinding>>,
    errors: &mut ErrorSink,
)
Expand description

bynk.deploy.binding_collision (#3562): the members of a Worker group share one wrangler.toml and one env, so a binding name two members both declare is one binding when their declarations are identical (the same kind and options, so the point of co-location is shared state) and an error when they differ. bindings holds each context’s bindings (phase_duplicate_bindings reports a name one context repeats). One error per clash, at the later member’s declaration, naming both members and both sources.