Factor out the rate limiting behavior from irc.
authorMatt Mullins <mmullins@mmlx.us>
Mon, 4 Jan 2016 07:28:57 +0000 (23:28 -0800)
committerMatt Mullins <mmullins@mmlx.us>
Mon, 4 Jan 2016 07:28:57 +0000 (23:28 -0800)
commite9aca78d5eafd64baab2162ee3dbfb345744f03a
treea03aec15c7f5353ae5e6989d76e79effd6d72157
parent4b692e19bef8182f1937f646b4e323426c07bcef
Factor out the rate limiting behavior from irc.

This will be more generically used to rate limit any code path that depends on
connecting to an external service.  Particularly: AMQP.

The goal is that external service availability should not tear down entire
supervisor hierarchies, and instead just the single worker connected to it.
core/rate_limit.erl [new file with mode: 0644]
irc/irc_conn.erl