abersheeran / asgi-ratelimit

A ASGI Middleware to rate limit
Apache License 2.0
292 stars 11 forks source link

support customize user & group key in jwt #41

Closed ponytailer closed 2 years ago

ponytailer commented 2 years ago

Token is fixed, maybe need direct the user key when use the create_jwt_token.

thanks.

40

ponytailer commented 2 years ago
Run black --check --diff .
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.9/x64/bin/black", line 5, in <module>
    from black import patched_main
  File "/opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/black/__init__.py", line 52, in <module>
    from typed_ast import ast3, ast27
  File "/opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/typed_ast/ast3.py", line 40, in <module>
    from typed_ast import _ast3
ImportError: /opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/typed_ast/_ast3.cpython-39-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_DecodeUnicodeEscape
Error: Process completed with exit code 1.

can retry to fix ?

abersheeran commented 2 years ago

Very strange actions problem, I will try to fix it later.

abersheeran commented 2 years ago

Found it. https://github.com/python/typeshed/pull/6278

Can you execute poetry update and submit the new poetry lock to this PR?

ponytailer commented 2 years ago

OK, I push the new poetry.lock

abersheeran commented 2 years ago

Thank you for your efforts!