Skip to content
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

Fix readme on backend insertion #3

Merged

Conversation

vidalmatheus
Copy link
Contributor

No description provided.

README.md Outdated
@@ -33,6 +33,7 @@ third_party_api_rate_limit_bucket = SimpleTokenBucket(
name="third_party_api",
bucket_size=3,
interval=10,
backend=RedisBackend(<<REDIS-CLIENT-OBJECT>>)
Copy link
Member

@ecarrara ecarrara Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the from_url classmethod here.

Suggested change
backend=RedisBackend(<<REDIS-CLIENT-OBJECT>>)
backend=RedisBackend.from_url("redis://localhost/0")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed. I also put 6379 port just to be more clear about it

@vidalmatheus vidalmatheus force-pushed the fix-readme-on-backend-insertion branch from bec1e86 to dee891c Compare July 15, 2023 00:13
@ecarrara ecarrara merged commit f108712 into buserbrasil:main Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants