Skip to main content

discovery_handler

Function discovery_handler 

Source
pub fn discovery_handler(
    discovery_results: Vec<DiscoveryReply>,
    worker_id: u32,
    worker_stacks: &mut HashMap<u32, VecDeque<Task>>,
    origin_id: u32,
    nprobes: u32,
)
Expand description

Takes a TaskResult containing discovery probe replies for –responsive or –latency probes.

§Arguments

  • discovery_results - List of discovery results
  • worker_id - worker that will perform the follow-up tasks
  • worker_stacks - shared stack to put worker tasks in
  • origin_id - Origin for which these replies are received
  • nprobes - number of times the worker sends each follow-up probe