developmentseed / obstore

Simple, fast integration with Amazon S3, Google Cloud Storage, Azure Storage, and S3-compliant APIs like Cloudflare R2
https://developmentseed.org/obstore
MIT License
146 stars 3 forks source link

Customize tokio runtime for sync operations? #72

Open kylebarron opened 2 weeks ago

kylebarron commented 2 weeks ago

Right now we use a hard-coded, global multi-threaded tokio runtime: https://github.com/developmentseed/obstore/blob/034f1725ba25d26cd196947b5eab36eda2cdc704/obstore/src/runtime.rs#L8-L18

Perhaps we should let users customize the parameters of that runtime, and pass in the runtime as a kwarg?

I figure this probably doesn't really matter because the sync operations mean only one will really happen at once?