Skip to content

Commit

Permalink
refactor: better logging for sqlite pools
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 21, 2024
1 parent f743aae commit 6a51f34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class DataSourcesConfiguration(
@Bean("sqliteDataSource")
@Primary
fun sqliteDataSource(): DataSource =
buildDataSource("SqliteUdfPool", SqliteUdfDataSource::class.java, komgaProperties.database)
buildDataSource("SqliteMainPool", SqliteUdfDataSource::class.java, komgaProperties.database)

@Bean("tasksDataSource")
fun tasksDataSource(): DataSource =
buildDataSource("SqliteTaskPool", SQLiteDataSource::class.java, komgaProperties.tasksDb)
buildDataSource("SqliteTasksPool", SQLiteDataSource::class.java, komgaProperties.tasksDb)
.apply {
// force pool size to 1 for tasks datasource
this.maximumPoolSize = 1
Expand Down

0 comments on commit 6a51f34

Please sign in to comment.