Skip to content

Commit

Permalink
fix DataSourceConfig loadBalanceEnabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
F-ca7 committed Jan 13, 2023
1 parent 7337ab4 commit 5e4fb66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions batch-tool/src/main/java/datasource/DataSourceConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public DataSourceConfig build() {
dataSourceConfig.maxWait = this.maxWait;
dataSourceConfig.connParam = this.connParam;
dataSourceConfig.initSqls = this.initSqls;
dataSourceConfig.loadBalanceEnabled = this.loadBalanceEnabled;
String jdbcUrl;
if (loadBalanceEnabled) {
jdbcUrl = String.format(DataSourceUtil.LOAD_BALANCE_URL_PATTERN,
Expand Down

0 comments on commit 5e4fb66

Please sign in to comment.