You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nameServer property ultimately maps to ClientConfig#setNamesrvAddr that requires a host:port pair separated by ;
I think it would be nicer to not expose that complexity back to the configuration. Rather, the configuration should expose a List<String> where each item represent a host:port pair.
There are several advantages to this:
Each pair can be checked individually and an exception can be thrown if its format is invalid
YAML configuration is much more readable as you can use the native list format
Perhaps the property can be renamed to servers to express it is a list
Taking this into consideration (+ #9) the property can be configured as follows: