Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/scylla_cloud: use functool.cache to cache identify_cloud_async()
this change is a follow-up of d97e311, which caches the result of `identify_cloud_async()` using a global variable. it would be more idiomatic to use `functool.cache` for caching a costy function like `identify_cloud_async()`, so in this change we use it for caching. simpler this way. and more importantly, it is more readable. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information