Skip to content

Commit

Permalink
Fixed wrongly pushed code
Browse files Browse the repository at this point in the history
  • Loading branch information
OrleneMitchell authored and larsLotNav committed Jun 15, 2023
1 parent 061c601 commit ff05ed3
Showing 1 changed file with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,19 @@ public static DataSource create() {
int count = 0;
int maxTries = 10;
HikariDataSource dataSource;
return null;}
// while(true) {
// try {
// dataSource = new HikariDataSource(new HikariConfig(properties));
// break;
// } catch (Exception e) {
// if (++count == maxTries) {
// throw e;
// };
// }
// }
//
//
//
// Flyway.configure().dataSource(dataSource).load().migrate();
// return dataSource;
// }
while(true) {
try {
dataSource = new HikariDataSource(new HikariConfig(properties));
break;
} catch (Exception e) {
if (++count == maxTries) {
throw e;
};
}
}
Flyway.configure().dataSource(dataSource).load().migrate();
return dataSource;
}



Expand Down

0 comments on commit ff05ed3

Please sign in to comment.