Commit 789b8ca
committed
Lazily initialize Executor in ScheduledDataLoaderRegistry builder
Calling ScheduledDataLoaderRegistry.newScheduledRegistry would create a new
ScheduledExecutorService on every call, regardless of whether a custom one
was supplied. Move creation of the default ScheduledExecutorService from the
builder field to the build method to avoid the issue.1 parent 5f8ec4a commit 789b8ca
File tree
1 file changed
+4
-1
lines changed- src/main/java/org/dataloader/registries
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
0 commit comments