You've already forked FrameTour-BE
3
This commit is contained in:
@ -128,7 +128,15 @@ public class VideoPieceGetter {
|
||||
.values();
|
||||
collection.forEach(faceSampleList -> {
|
||||
executor.execute(() -> {
|
||||
faceSampleList.parallelStream().forEach(faceSample -> {
|
||||
AtomicBoolean isFirst = new AtomicBoolean(true);
|
||||
faceSampleList.forEach(faceSample -> {
|
||||
if (!isFirst.get()) {
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException ignore) {
|
||||
}
|
||||
}
|
||||
isFirst.set(false);
|
||||
executor.execute(() -> {
|
||||
DeviceEntity device = deviceRepository.getDevice(faceSample.getDeviceId());
|
||||
DeviceConfigEntity config = deviceRepository.getDeviceConfig(faceSample.getDeviceId());
|
||||
|
Reference in New Issue
Block a user