-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev/19: ServiceInstanceListSupplierBuilder design basic implementation #24
Conversation
commons/client/loadbalancer/supplier/service_instance_list_supplier.py
Outdated
Show resolved
Hide resolved
btw what happened to your pre-commit check? |
@Ricky587 Since my PRs are sequential, dev/20 based on dev/19, dev/19 based on dev/17, dev/17 based on main BTW the pre-commit hook works very well locally, it's really convenient. |
Revision Done |
LGTM for pythonic |
Go go ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
#24) * 🍺 implement DiscoveryClient design * Add more comments * Modify some functional operation concerning performance * 📝 add typing and docstrings * Make some fields private * Fix naming * pending discussion: next+filter vs list comprehension * 🎨 Add type checking syntax * improve filter_get_first utils * ✨ FixedServiceInstanceListSupplier completed * ✨ CachingServiceInstanceListSupplier completed * 🎨 Add type checking syntax * 🎨 Add NoneTypeError and some type checking * 🍺 implement DiscoveryClient design * Add more comments * Modify some functional operation concerning performance * 📝 add typing and docstrings * Make some fields private * Fix naming * pending discussion: next+filter vs list comprehension * 🎨 Add type checking syntax * improve filter_get_first utils * 🚚 Modify the package layout, rooted from spring_cloud * add utils/validate
Description
ServiceInstanceListSupplierBuilder
implementationDelegatingServiceInstanceListSupplier
andCachingServiceInstanceListSupplier
CacheManager
basic implementation helps handle caching get/put in a fluent way, for examplecache_manager.get(CACHE_NAME).on_cache_miss(lambda: retrieve_value())
CacheManager
is used byCachingServiceInstanceListSupplier