Skip to content

Commit

Permalink
use non critical io pool executor for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Jan 11, 2025
1 parent 5e72d25 commit 7400e5c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import de.teamlapen.vampirism.REFERENCE;
import de.teamlapen.vampirism.config.VampirismConfig;
import net.minecraft.DetectedVersion;
import net.minecraft.Util;
import net.minecraft.client.Minecraft;
import net.neoforged.fml.LogicalSide;
import net.neoforged.fml.ModList;
import net.neoforged.fml.util.thread.EffectiveSide;
Expand Down Expand Up @@ -33,7 +35,7 @@ public static void execute() {
}

private static void send() {
try (var http = HttpClient.newHttpClient()) {
try(var http = HttpClient.newBuilder().executor(Util.nonCriticalIoPool()).build()) {
StringBuilder builder = new StringBuilder();
builder.append(REFERENCE.SETTINGS_API);
builder.append("/telemetry/basic");
Expand Down

0 comments on commit 7400e5c

Please sign in to comment.