Skip to content

Commit 8fcd31a

Browse files
committed
Remove debug
1 parent 3686727 commit 8fcd31a

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

common/src/main/java/com/lunarclient/apollo/api/ApolloHttpManager.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ public <T extends ApiResponse> Future<T> request(ApiRequest<T> request) {
8181
ApiRequestType requestType = request.getType();
8282
Type responseType = request.getResponseType();
8383

84-
System.out.println("Request:");
85-
System.out.println(ApolloManager.GSON.toJson(request));
86-
87-
if (true) {
88-
return future;
89-
}
90-
9184
this.requestExecutor.submit(() -> {
9285
try {
9386
URL url = new URL("https://" + request.getService().getUrl() + request.getRoute());

common/src/main/java/com/lunarclient/apollo/stats/ApolloStatsManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@
3636
import java.util.List;
3737
import java.util.UUID;
3838
import java.util.stream.Collectors;
39-
import lombok.Getter;
4039

4140
/**
4241
* Manages Apollo statistics.
4342
*
4443
* @since 1.0.0
4544
*/
46-
@Getter
4745
public final class ApolloStatsManager {
4846

4947
public static final String SESSION_ID = UUID.randomUUID().toString();
@@ -85,7 +83,7 @@ public final class ApolloStatsManager {
8583
.defaultValue(true).build();
8684

8785
public static final SimpleOption<Boolean> HEARTBEAT_USER_METADATA = Option.<Boolean>builder()
88-
.comment("Set to 'true' to send players user metadata such as TODO to MCStats, otherwise 'false'.")
86+
.comment("Set to 'true' to send players user metadata to MCStats, otherwise 'false'.")
8987
.node(CONFIG_PREFIX, "user-metadata").type(TypeToken.get(Boolean.class))
9088
.defaultValue(true).build();
9189

common/src/main/java/com/lunarclient/apollo/stats/ApolloStatsThread.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class ApolloStatsThread extends Thread {
4343

4444
private static final long MB_BYTES = 1024 * 1024;
4545
private static final OperatingSystemMXBean MX_BEAN = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class);
46-
private static final long HEARTBEAT_INTERVAL = TimeUnit.MINUTES.toMillis(2);
46+
private static final long HEARTBEAT_INTERVAL = TimeUnit.MINUTES.toMillis(15);
4747

4848
/**
4949
* Constructs the {@link ApolloStatsThread} thread.
@@ -99,12 +99,8 @@ public void run() {
9999

100100
requestBuilder
101101
.metadata(metadataManager.extract());
102-
System.out.println("Metadata");
103-
System.out.println(metadataManager.extract());
104102

105103
metadataManager.clear();
106-
System.out.println("After clear");
107-
System.out.println(metadataManager.extract());
108104
}
109105

110106
final ServerHeartbeatRequest finalRequest = request = requestBuilder.build();

0 commit comments

Comments
 (0)