We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa8ee7 commit ab7bfe2Copy full SHA for ab7bfe2
src/main/java/org/jnosql/demoee/CameraService.java
@@ -62,11 +62,11 @@ public Camera update(Camera update) {
62
public void insertAsync(int size) {
63
LOGGER.info("Inserting cameras async the size: " + size);
64
65
- vThreads.submit(() -> {
66
- for (int index = 0; index < size; index++) {
+ for (int index = 0; index < size; index++) {
+ vThreads.submit(() -> {
67
Camera camera = Camera.of(FAKER);
68
template.insert(camera);
69
- }
70
- });
+ });
+ }
71
}
72
0 commit comments