kopia lustrzana https://github.com/bertrik/ttnhabbridge
Use execute() instead of submit() on the habitat uploader executor.
rodzic
99953281c4
commit
c4a86a9c86
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue