Subject: | bug report for AnyEvent::Twitter |
Date: | Wed, 4 Nov 2009 20:49:33 +0900 |
To: | bug-anyevent-twitter [...] rt.cpan.org |
From: | Yoshihiro Sugi <sugi1982 [...] gmail.com> |
Hi,
I use AnyEvent::Twitter, and I found a bug in "_schedule_next_tick".
This module didn't wait when remaining_hits equals 0.
This problem can be cause by following code.
http://gist.github.com/225087
$next_tick become negative value when response status equals 400.
It should be modified as:
196c196
< $next_tick = $last_req_hdrs->{'x-ratelimit-remaining'} - time;
---
Show quoted text
> $next_tick = $remaining_time;
thanks.