File tree 1 file changed +7
-8
lines changed
app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -363,15 +363,14 @@ private Set<String> populateHintMessages(List<String> columnNames) {
363
363
@ Override
364
364
public Mono <HikariDataSource > datasourceCreate (DatasourceConfiguration datasourceConfiguration ) {
365
365
log .debug (Thread .currentThread ().getName () + ": datasourceCreate() called for MSSQL plugin." );
366
- return connectionPoolConfig
367
- .getMaxConnectionPoolSize ()
368
- .flatMap (maxPoolSize -> {
366
+ return Mono .defer (
367
+ () -> connectionPoolConfig .getMaxConnectionPoolSize ().flatMap (maxPoolSize -> {
369
368
return Mono .fromCallable (() -> {
370
- log .debug (Thread .currentThread ().getName () + ": Connecting to SQL Server db" );
371
- return createConnectionPool (datasourceConfiguration , maxPoolSize );
372
- });
373
- })
374
- . subscribeOn ( scheduler );
369
+ log .debug (Thread .currentThread ().getName () + ": Connecting to SQL Server db" );
370
+ return createConnectionPool (datasourceConfiguration , maxPoolSize );
371
+ })
372
+ . subscribeOn ( scheduler );
373
+ }) );
375
374
}
376
375
377
376
@ Override
You can’t perform that action at this time.
0 commit comments