-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache init parametes bug #18
Comments
What do you mean "it can't perform"? They're set separately because they have defaults. |
Sorry, my report wasn't sufficiently verbose. Calling the
results in:
(This was what I meant, by 'can not perform' :-) ) The reason is https://github.com/ipinfo/python/blob/master/ipinfo/handler.py#L42 . We are setting default values for |
Thanks for the report @juditnovak. We'll fix that up and make a release. |
[#18] Properly choose defaults for cache maxsize and ttl
@juditnovak Changed up the interface to |
Thx much, this is what I call a prompt response and a quick fix! :-) |
https://github.com/ipinfo/python/blob/master/ipinfo/handler.py#L42
In case
cache_options
was defined, we end up "re-seinding" it, after having retrievedmaxsize
andttl
from the same dictionary. This way we multiply the same parameter in the function call, thus it can't perform.The text was updated successfully, but these errors were encountered: