Skip to content

Commit 419aa87

Browse files
committed
Switch to submitAsync in scheduled task
1 parent 4033d4e commit 419aa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/dev/faststats/core/SimpleMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void startSubmitting(long initialDelay, long period, TimeUnit unit) {
131131
info("Starting metrics submission");
132132
executor.scheduleAtFixedRate(() -> {
133133
try {
134-
submitData();
134+
submitAsync();
135135
} catch (Exception e) {
136136
error("Failed to submit metrics", e);
137137
}

0 commit comments

Comments
 (0)