Skip to content

Commit

Permalink
Quarkus/Agoral: fix deprecation
Browse files Browse the repository at this point in the history
Removing the use of `io.quarkus.agroal.runtime.UnconfiguredDataSource`, which is deprecated with the note "never instantiated by Quarkus".
  • Loading branch information
snazy committed Nov 27, 2024
1 parent 9954c6e commit b8a5b40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import static org.projectnessie.quarkus.config.VersionStoreConfig.VersionStoreType.JDBC2;

import io.quarkus.agroal.runtime.UnconfiguredDataSource;
import io.quarkus.arc.All;
import io.quarkus.arc.InstanceHandle;
import io.quarkus.datasource.common.runtime.DatabaseKind;
Expand Down Expand Up @@ -103,9 +102,6 @@ private DataSource selectDataSource() {
.map(Jdbc2BackendBuilder::unquoteDataSourceName)
.orElse(DEFAULT_DATA_SOURCE_NAME);
DataSource dataSource = findDataSourceByName(dataSourceName);
if (dataSource instanceof UnconfiguredDataSource e) {
e.throwException();
}
if (dataSourceName.equals(DEFAULT_DATA_SOURCE_NAME)) {
LOGGER.warn(
"Using legacy datasource configuration under quarkus.datasource.*: "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ private DataSource selectDataSource() {
.map(JdbcBackendBuilder::unquoteDataSourceName)
.orElse(DEFAULT_DATA_SOURCE_NAME);
DataSource dataSource = findDataSourceByName(dataSourceName);
if (dataSource instanceof UnconfiguredDataSource e) {
e.throwException();
}
if (dataSourceName.equals(DEFAULT_DATA_SOURCE_NAME)) {
LOGGER.warn(
"Using legacy datasource configuration under quarkus.datasource.*: "
Expand Down

0 comments on commit b8a5b40

Please sign in to comment.