-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ws start #9
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
==========================================
+ Coverage 97.38% 98.86% +1.48%
==========================================
Files 18 25 +7
Lines 344 441 +97
Branches 7 15 +8
==========================================
+ Hits 335 436 +101
+ Misses 9 4 -5
- Partials 0 1 +1
Continue to review full report at Codecov.
|
excars/ws/utils.py
Outdated
return f'{USER_PREFIX}{user}' | ||
|
||
|
||
async def get_all_keys(prefix, redis): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
по идее можно переписать:
return [key async for key in redis.iscan(match=f'{prefix}*')]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
согласен
excars/ws/users_map.py
Outdated
|
||
|
||
async def handler(request, ws): | ||
await asyncio.sleep(0.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а зачем здесь sleep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
попробую без него
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
телегу посмотри)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ща
No description provided.