Skip to content

Instantly share code, notes, and snippets.

@negator
Last active December 10, 2015 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save negator/4371007 to your computer and use it in GitHub Desktop.
Save negator/4371007 to your computer and use it in GitHub Desktop.
Status updating and reporting iteratee
/* Status updating and reporting iteratee*/
def updatingStatus:Iteratee[ErrorOrActivity,Unit] = Iteratee.foreach[ErrorOrActivity] {
case Left(error) =>
reportError(error)
statsd("collector.error")
case Right(activity) =>
reportSuccess(activity)
statsd("collector.success")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment