Skip to main content

poke_nodes

Function poke_nodes 

Source
pub async fn poke_nodes(database: &Arc<Database>)
Expand description

Tells every node on the mesh to pull the snapshot now rather than on its next poll. Must be called after the commit that bumped the epoch, or a node can win the race and re-read the state it already has. Batched under one key, so several bumps in a request collapse to one round of pokes, and spawned so the batch loop is not held for the length of the requests.