Use execute() instead of submit() on the habitat uploader executor.

master
Bertrik Sikken 2021-09-16 01:03:46 +02:00
rodzic 99953281c4
commit c4a86a9c86
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -112,7 +112,7 @@ public final class HabitatUploader {
String json = doc.format();
// submit it to our processing thread
executor.submit(() -> uploadPayloadTelemetry(docId, json));
executor.execute(() -> uploadPayloadTelemetry(docId, json));
}
}
@ -158,7 +158,7 @@ public final class HabitatUploader {
* @param instant the current date/time
*/
public void scheduleListenerDataUpload(HabReceiver receiver, Instant instant) {
executor.submit(() -> uploadListener(receiver, instant));
executor.execute(() -> uploadListener(receiver, instant));
}
/**