Skip to content

Instantly share code, notes, and snippets.

@RayRoestenburg
Created August 29, 2012 20:43
Show Gist options
  • Save RayRoestenburg/3518677 to your computer and use it in GitHub Desktop.
Save RayRoestenburg/3518677 to your computer and use it in GitHub Desktop.
handlerequest
def handleRequest:Receive = {
case (req:Request, spider @ Spider(ref,WebTrail(collected, uuid))) if !lastId.exists(_ == uuid) =>
lastId = Some(uuid)
collect(req).map { data =>
sendSpiders(ref, data, (req,spider), collected)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment