kylebarron commented on issue #402:
URL: 
https://github.com/apache/arrow-rs-object-store/issues/402#issuecomment-2949629842

   If you make an extra request to infer the region, you probably only want to 
do that once.
   
   But you also have a mismatch between the states at which the Store is 
mutable, no? If you have an `S3Store` under an `Arc<dyn ObjectStore>`, then you 
can't assign the region at that point.
   
   So you'd need to infer the region before you call `build()`, and it can't 
happen _inside_ `build()` because `build` is not async.
   
   So perhaps the best API here is to add a `AmazonS3Builder::infer_region` 
async function that a user can expressly call?


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