tustvold commented on issue #6718:
URL: https://github.com/apache/arrow-rs/issues/6718#issuecomment-2469997805

   We already do something similar to this in this crate, see TokenProvider.
   
   Switching to &mut self would require the same change to the ObjectStore 
trait to match, which is definitely not possible. It also would not work with 
`Arc`.
   
   Implementations should just use an interior mutability primitive, e.g. Mutex 
or RWLock, as appropriate


-- 
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]

Reply via email to