minor refactors

This commit is contained in:
James Seibel
2025-12-22 09:46:21 -06:00
parent 81c533051e
commit 2c5f5a3d4c
3 changed files with 6 additions and 4 deletions
@@ -202,8 +202,9 @@ public class FullDataSourceV2
public static FullDataSourceV2 createEmpty(long pos)
{
FullDataPointIdMap map = new FullDataPointIdMap(pos);
return new FullDataSourceV2(
pos, new FullDataPointIdMap(pos),
pos, map,
// data points, genSteps, and columnCompression are all null since
// nothing has been generated yet.
// Using the default value of all 0's is adequate
@@ -331,7 +331,7 @@ public class WorldGenerationQueue implements IFullDataSourceRetrievalQueue, IDeb
}
// a task has been started or queued
// a task has been started or queued,
// queue another task
return true;
}
@@ -360,7 +360,7 @@ public class WorldGenerationQueue implements IFullDataSourceRetrievalQueue, IDeb
this.rollingAverageChunkGenTimeInMs.add(timePerChunk);
});
generationFuture.handle((fullDataSourceV2, exception) ->
generationFuture.handle((FullDataSourceV2 fullDataSource, Throwable exception) ->
{
try
{
@@ -155,7 +155,8 @@ public abstract class AbstractFullDataNetworkRequestQueue implements IDebugRende
this.failedRequests.incrementAndGet();
break;
default:
if (throwable != null && !(throwable instanceof CancellationException))
if (throwable != null
&& !(throwable instanceof CancellationException))
{
this.failedRequests.incrementAndGet();
}