Remove rate limiter waiting in perms syncer#47374
Conversation
cfafd76 to
db94ac6
Compare
Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 35497d5...e0e6d27.
|
mrnugget
left a comment
There was a problem hiding this comment.
Nice. It was that easy? You made triply sure that we do use a rate limiter in all of the clients we use for auth providers?!
Everything that can get called by |
|
@mrnugget so for Perforce, the perms_syncer makes a request to |
Closes #47186
We already wait for rate limits inside the clients that make requests to the code hosts. Waiting for rate limits in the perms syncer causes double consumption of tokens:
Here you can see the rate limit tokens being reduced twice for a single GitHub request

And here it is after removing the wait in the perms syncer:
Test plan
Removed unit tests that are no longer necessary. The rest remains the same.