-
Notifications
You must be signed in to change notification settings - Fork 428
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
Use maps in outgoing pools config #3541
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
052cd95
to
223558f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
223558f
to
28f84c0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
28f84c0
to
50e9206
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report
@@ Coverage Diff @@
## master #3541 +/- ##
==========================================
- Coverage 81.11% 79.23% -1.88%
==========================================
Files 420 420
Lines 32288 32266 -22
==========================================
- Hits 26189 25566 -623
- Misses 6099 6700 +601
Continue to review full report at Codecov.
|
This comment was marked as outdated.
This comment was marked as outdated.
b89ae09
to
23d6a4c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
38e18a7
to
0d8863f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0d8863f
to
f1bf85b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d652ad4
to
c2a0b11
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
c2a0b11
to
41cd4ca
Compare
This comment was marked as outdated.
This comment was marked as outdated.
41cd4ca
to
1ce81c1
Compare
small_tests_24 / small_tests / 1ce81c1 small_tests_23 / small_tests / 1ce81c1 dynamic_domains_mysql_redis_24 / mysql_redis / 1ce81c1 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 1ce81c1 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 1ce81c1 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 1ce81c1 ldap_mnesia_23 / ldap_mnesia / 1ce81c1 ldap_mnesia_24 / ldap_mnesia / 1ce81c1 internal_mnesia_24 / internal_mnesia / 1ce81c1 pgsql_mnesia_24 / pgsql_mnesia / 1ce81c1 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 1ce81c1 pgsql_mnesia_23 / pgsql_mnesia / 1ce81c1 mysql_redis_24 / mysql_redis / 1ce81c1 mssql_mnesia_24 / odbc_mssql_mnesia / 1ce81c1 riak_mnesia_24 / riak_mnesia / 1ce81c1 |
7e9821d
to
7b62bfd
Compare
This comment was marked as outdated.
This comment was marked as outdated.
small_tests_24 / small_tests / 7b62bfd small_tests_23 / small_tests / 7b62bfd dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 7b62bfd dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 7b62bfd dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 7b62bfd dynamic_domains_mysql_redis_24 / mysql_redis / 7b62bfd ldap_mnesia_23 / ldap_mnesia / 7b62bfd ldap_mnesia_24 / ldap_mnesia / 7b62bfd internal_mnesia_24 / internal_mnesia / 7b62bfd mysql_redis_24 / mysql_redis / 7b62bfd pgsql_mnesia_24 / pgsql_mnesia / 7b62bfd elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 7b62bfd pgsql_mnesia_23 / pgsql_mnesia / 7b62bfd mssql_mnesia_24 / odbc_mssql_mnesia / 7b62bfd riak_mnesia_24 / riak_mnesia / 7b62bfd |
This comment was marked as outdated.
This comment was marked as outdated.
small_tests_23 / small_tests / 82a0a5e small_tests_24 / small_tests / 82a0a5e dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 82a0a5e ldap_mnesia_23 / ldap_mnesia / 82a0a5e ldap_mnesia_24 / ldap_mnesia / 82a0a5e dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 82a0a5e dynamic_domains_mysql_redis_24 / mysql_redis / 82a0a5e dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 82a0a5e pgsql_mnesia_24 / pgsql_mnesia / 82a0a5e mysql_redis_24 / mysql_redis / 82a0a5e internal_mnesia_24 / internal_mnesia / 82a0a5e mssql_mnesia_24 / odbc_mssql_mnesia / 82a0a5e elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 82a0a5e pgsql_mnesia_23 / pgsql_mnesia / 82a0a5e riak_mnesia_24 / riak_mnesia / 82a0a5e |
82a0a5e
to
f1bc241
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Paweł Chrząszcz <[email protected]>
No need to provide defaults, as pool_config/1 will add them. This includes a `default` tag. Options are now checked against values other than defaults.
The call_timeout option was not part of the connection section.
f1bc241
to
65e89be
Compare
small_tests_24 / small_tests / 65e89be small_tests_23 / small_tests / 65e89be dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 65e89be dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 65e89be ldap_mnesia_23 / ldap_mnesia / 65e89be dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 65e89be dynamic_domains_mysql_redis_24 / mysql_redis / 65e89be internal_mnesia_24 / internal_mnesia / 65e89be elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 65e89be pgsql_mnesia_23 / pgsql_mnesia / 65e89be pgsql_mnesia_24 / pgsql_mnesia / 65e89be ldap_mnesia_24 / ldap_mnesia / 65e89be mysql_redis_24 / mysql_redis / 65e89be mssql_mnesia_24 / odbc_mssql_mnesia / 65e89be riak_mnesia_24 / riak_mnesia / 65e89be |
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.
Looks good to me!
Parsed pools config is now a list of maps. Internal
opts
andconn_opts
are maps also.In some places it is not really leveraged, and they are quickly changed to KV lists. One such place that is a bit awkward are the wpool opts, and
start_configured_pools
changes the options from a map. There are probably some improvements left on the table with the maps, but I didn't want to make this PR too big.Now with default values!
Also, some code simplifications and improvements, some better specs and so on.