AdamGS opened a new pull request, #615: URL: https://github.com/apache/arrow-rs-object-store/pull/615
# Which issue does this PR close? Closes #541. # Rationale for this change This PR intends to reduce the contention on the token cache by replacing the mutex with a RwLock. We first take the read lock to optimistically check if we can just return the token, and if it expired we take an exclusive write lock to refresh it. # What changes are included in this PR? Replace the cache's inner lock from `Mutex` to a `RwLock`, and introducing a more strict type bound on its inner value. This change isn't user facing as the type is private and all the places that use it already require that `T: Send + Sync`. # Are there any user-facing changes? None -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
