josiahcarlson/redis-in-action — pull request #1 by terryjbates (2013-05-05 03:10:10+00:00)
Title: Cast 'current_offset' into integer to prevent "TypeError" if re-running script after crash.

Cast 'current_offset' into an integer, as this will throw a "TypeError" since this is a string read from Redis on subsequent runs of script (simulating a crash and restarting from offset); it would not be noticed on initial run, since it starts as an integer.