Skip to content

Commit ab7bfe2

Browse files
committed
feat: generate vhrad on service
Signed-off-by: Otavio Santana <[email protected]>
1 parent 5fa8ee7 commit ab7bfe2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/jnosql/demoee/CameraService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public Camera update(Camera update) {
6262
public void insertAsync(int size) {
6363
LOGGER.info("Inserting cameras async the size: " + size);
6464

65-
vThreads.submit(() -> {
66-
for (int index = 0; index < size; index++) {
65+
for (int index = 0; index < size; index++) {
66+
vThreads.submit(() -> {
6767
Camera camera = Camera.of(FAKER);
6868
template.insert(camera);
69-
}
70-
});
69+
});
70+
}
7171
}
7272
}

0 commit comments

Comments
 (0)