-
Notifications
You must be signed in to change notification settings - Fork 79
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
OAuth V2 manager (SYN-4177) #2910
Conversation
Codecov ReportBase: 97.17% // Head: 97.08% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2910 +/- ##
==========================================
- Coverage 97.17% 97.08% -0.10%
==========================================
Files 215 216 +1
Lines 42186 42439 +253
==========================================
+ Hits 40996 41202 +206
- Misses 1190 1237 +47
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
synapse/lib/oauth.py
Outdated
self.oauth_sched_map[newitem[1:]] = refresh_at | ||
heapq.heappush(self.oauth_sched_heap, newitem) | ||
|
||
if self.oauth_sched_heap[0] == newitem: |
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.
Can't we do an identify check here since the item in the heap is a tuple who either is or is not the item we made a few lines previously and did not mutate?
No description provided.