mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-14 20:21:45 +01:00
3.6.1
Fix TimeKeeper tostring Remove parallelStream from Tables because there is only one database connection.
This commit is contained in:
parent
6ddd7a212c
commit
c94bcafc41
@ -1,14 +1,14 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.djrapitops:PlanPluginBridge:3.6.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../PlanPluginBridge/PlanPluginBridge-3.6.0.jar!/" />
|
||||
<root url="file://$PROJECT_DIR$/../PlanPluginBridge" />
|
||||
<root url="file://$PROJECT_DIR$/../PlanPluginBridge" />
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<JAVADOC>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="file://$PROJECT_DIR$/../PlanPluginBridge/src/main/java" />
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
<jarDirectory url="file://$PROJECT_DIR$/../PlanPluginBridge" recursive="false" />
|
||||
</library>
|
||||
</component>
|
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.djrapitops</groupId>
|
||||
<artifactId>Plan</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<version>3.6.1</version>
|
||||
<packaging>jar</packaging>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
@ -155,7 +155,7 @@ public abstract class TimeKeeper {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TimeKeeper{" +
|
||||
return getClass().getSimpleName()+"{" +
|
||||
"times=" + times +
|
||||
", state='" + state + '\'' +
|
||||
", lastStateChange=" + lastStateChange +
|
||||
|
@ -220,7 +220,7 @@ public class GMTimesTable extends Table {
|
||||
|
||||
List<List<Container<GMTimes>>> batches = DBUtils.splitIntoBatchesWithID(gmTimes);
|
||||
|
||||
batches.parallelStream().forEach(batch -> {
|
||||
batches.stream().forEach(batch -> {
|
||||
try {
|
||||
saveGMTimesBatch(batch);
|
||||
} catch (SQLException e) {
|
||||
@ -298,7 +298,7 @@ public class GMTimesTable extends Table {
|
||||
|
||||
List<List<Container<GMTimes>>> batches = DBUtils.splitIntoBatchesWithID(gmTimes);
|
||||
|
||||
batches.parallelStream().forEach(batch -> {
|
||||
batches.stream().forEach(batch -> {
|
||||
try {
|
||||
addNewGMTimesBatch(batch);
|
||||
} catch (SQLException e) {
|
||||
|
@ -218,7 +218,7 @@ public class SessionsTable extends Table {
|
||||
|
||||
List<List<Container<SessionData>>> batches = splitIntoBatches(sessions);
|
||||
|
||||
batches.parallelStream().forEach(batch -> {
|
||||
batches.stream().forEach(batch -> {
|
||||
try {
|
||||
saveSessionBatch(batch);
|
||||
} catch (SQLException e) {
|
||||
|
@ -119,7 +119,7 @@ public class TPSTable extends Table {
|
||||
*/
|
||||
public void saveTPSData(List<TPS> data) throws SQLException {
|
||||
List<List<TPS>> batches = DBUtils.splitIntoBatches(data);
|
||||
batches.parallelStream()
|
||||
batches.stream()
|
||||
.forEach(batch -> {
|
||||
try {
|
||||
saveTPSBatch(batch);
|
||||
|
@ -683,7 +683,7 @@ public class UsersTable extends Table {
|
||||
|
||||
List<List<UserData>> batches = DBUtils.splitIntoBatches(newUserdata);
|
||||
|
||||
batches.parallelStream()
|
||||
batches.stream()
|
||||
.forEach(batch -> {
|
||||
try {
|
||||
insertNewUserData(batch);
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: Plan
|
||||
author: Rsl1122
|
||||
main: main.java.com.djrapitops.plan.Plan
|
||||
version: 3.6.0
|
||||
version: 3.6.1
|
||||
softdepend:
|
||||
- OnTime
|
||||
- EssentialsX
|
||||
|
Loading…
Reference in New Issue
Block a user